Cloudlog icon indicating copy to clipboard operation
Cloudlog copied to clipboard

feature request: prevent to record same qso on multiple submission

Open iddq opened this issue 2 years ago • 4 comments

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

iddq avatar Nov 05 '21 08:11 iddq

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

AndreasK79 avatar Nov 14 '21 09:11 AndreasK79

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

magicbug avatar Nov 14 '21 11:11 magicbug

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.

T012m3n7oR avatar Nov 17 '21 14:11 T012m3n7oR

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.

AndreasK79 avatar Nov 18 '21 18:11 AndreasK79