Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: prevent to record same qso on multiple submission #1275

Open
iddq opened this issue Nov 5, 2021 · 4 comments
Open

feature request: prevent to record same qso on multiple submission #1275

iddq opened this issue Nov 5, 2021 · 4 comments
Labels
Feature This would improve Cloudlog Help Wanted While I could code it myself, would like some help.

Comments

@iddq
Copy link

iddq commented Nov 5, 2021

same qso recorded if user pressing the button multiple times or refresh the page in browser with F5

@AndreasK79 AndreasK79 added Feature This would improve Cloudlog Help Wanted While I could code it myself, would like some help. labels Nov 14, 2021
@AndreasK79
Copy link
Contributor

@iddq I've seen this problem before. Not sure how to fix, other than making a call to the database before inserting.

@magicbug
Copy link
Owner

Yes think so, its been a lurking thing in Cloudlog from the start

@T012m3n7oR
Copy link
Contributor

Should be able to resolve this with an if not exists clause on the insert, I can see if I have time this weekend to review the SQL on how it's inserting.

@AndreasK79
Copy link
Contributor

AndreasK79 commented Nov 18, 2021

Add_qso() in logbook_model is the one inserting. It is called from several places. The one used on import, has a basic duplicate check. The ADIF import has an option to skip for duplicate check, so I think the best would be to move the duplicate check (and extend it to check on satellite and sub-mode) into add_qso, with the option to skip it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature This would improve Cloudlog Help Wanted While I could code it myself, would like some help.
Projects
None yet
Development

No branches or pull requests

4 participants