Compare commits

..

No commits in common. "2f8b3e95c576a9b8257e24d064f1ba2c9f50742f" and "4d66f92aace9b074da4d8b6ecc92e4e2a3714899" have entirely different histories.

1 changed files with 0 additions and 6 deletions

6
app.py
View File

@ -23,12 +23,6 @@ def set_data_point(data_id):
json.dump(data, f)
return jsonify({"success": True})
@app.route("/data/<key>")
def get_data_point(key):
if key not in data:
return jsonify({"success": False}), 404
return jsonify({"success": True, "value": data[key]})
@app.route("/admin/")
def admin():
return render_template("admin.html", data=data)