add: notification in viewer when error appears && api requests exception && new map-style (preparing for new update) && buttons color change

This commit is contained in:
te5154c
2024-02-28 00:51:08 +03:00
parent ce41b31331
commit bc8ca01729
7 changed files with 38 additions and 7 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ def request_handler():
try:
return requests.get(f"{VATSIM_API_URL}{request_string}").json()
except requests.exceptions.JSONDecodeError:
return jsonify({"result": "not found"})
return jsonify({"result": "error", "message": "Something went wrong. Report that error please"})
return jsonify({"result": "not found"})
return jsonify({"result": "not found", "message": "Not found"})
@app.route("/<int:cid>/")