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

Missing jsonify? #235

Closed philderbeast closed 3 years ago

philderbeast commented 3 years ago

All the other /flaretiming/<compid>/* URLs return jsonify(_) except this one. Was that intentional?

https://github.com/FAI-CIVL/FAI-Airscore/blob/d483e178b854c98ef2f889396a2f19a3b3f64539/airscore/public/views.py#L925

kuaka commented 3 years ago

it was intentional. What was not intentional was having jsonify on landout and arrival. It is necessary on route as this is a list. I obviously copied the route code as a template for the others and forgot to remove it. It has no effect. After a recent update flask will automatically send any dictionary jsonified. Route is a list so it needs to be explicit.

kuaka commented 3 years ago

removed redundants with https://github.com/FAI-CIVL/FAI-Airscore/commit/9d7a9f875e1446c2ae99c30ec13ad798ca38d213