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

Create a comp. public website link broken #197

Closed kuaka closed 3 years ago

kuaka commented 3 years ago

if you create a comp before scoring the link on the public website is broken.

This used to work with pages for comp not ready etc.

airscore_prod | result_file = get_comp_json(compid, overview=True) airscore_prod | File "/app/airscore/core/compUtils.py", line 95, in get_comp_json airscore_prod | data = open_json_file(get_comp_json_filename(comp_id, latest, overview)) airscore_prod | File "/app/airscore/core/compUtils.py", line 85, in get_comp_json_filename airscore_prod | filename = next(row for row in results if 'Overview' in row.filename).filename

biuti commented 3 years ago

fixed (https://github.com/FAI-CIVL/FAI-Airscore/commit/dac20f4754240483bae0e03d702357d201c0c3e4)