LukeWoodward / SplitsBrowser

Orienteering results analysis
GNU General Public License v2.0
13 stars 9 forks source link

Reject alternative CSV files where no competitors start. #61

Closed LukeWoodward closed 6 years ago

LukeWoodward commented 6 years ago

Event 10442 on splitsbrowser.org.uk unexpectedly loads: it is the results of a relay race, and every 'competitor' (in this case, relay team) either has a warning or is marked as did-not-start, so there's nothing to view. It happens that this file is similar enough to the alternative-CSV format that the alternative-CSV reader does not immediately reject it but then doesn't read any valid competitors out of it.

It would perhaps be an idea to reject alternative CSV files for which no valid competitor data gets read in as not of that format. That way, SplitsBrowser should reject this file as of an unrecognised format, which is the behaviour I would expect.