FAI-CIVL / FAI-Airscore

AirScore - online paragliding / hanggliding GAP-based scoring software.
https://airscore.cc/
GNU General Public License v3.0
13 stars 17 forks source link

Repeated overview entry for the same comp #184

Closed biuti closed 3 years ago

biuti commented 3 years ago

There was a bug that added a row in database each time the overview result file for a comp was updated, so multiple rows referred to the same file. Bug has been corrected with https://github.com/FAI-CIVL/FAI-Airscore/commit/445531a1680b586cd560e4d558d0a364f93fb1fe, but now you could get an error if more than one row is found with the same filename. So you need to delete all rows that have the same filename ending with _Overview.

kuaka commented 3 years ago

Probably not really a bug. This was the expected behaviour (one row per file update) but I agree it's not necessary for this file. However the row must be updated with created timestamp as the competition page uses the latest file. I think that your commit does update the timestamp but please test.