small fix for subwaydata

This commit is contained in:
Lucas
2021-09-27 17:53:20 -04:00
parent 3a8a368a34
commit fa71c8bfaa

View File

@@ -46,6 +46,7 @@ def link_to_station(data):
@app.route("/mta_data", methods=["POST"]) @app.route("/mta_data", methods=["POST"])
def get_mta_data(): def get_mta_data():
global subway_data
station = request.json["station"] station = request.json["station"]
if station in subway_data: if station in subway_data:
return jsonify( return jsonify(