From 89daced3ad47636b724fdb02720bf89b6eb39e3d Mon Sep 17 00:00:00 2001 From: ZaneYork Date: Mon, 27 Dec 2021 10:10:41 +0800 Subject: [PATCH] charts --- evaluate_server.py | 4 +++ static/charts.html | 85 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 static/charts.html diff --git a/evaluate_server.py b/evaluate_server.py index 37554e4..f06b70c 100644 --- a/evaluate_server.py +++ b/evaluate_server.py @@ -69,6 +69,10 @@ def battle_tick(): tick() return jsonify({'status': 0, 'message': 'success', 'result': ''}) +@app.route('/charts', methods=['GET']) +def charts(): + return app.send_static_file("charts.html") + @app.route('/metrics', methods=['GET']) def metrics(): type = request.args.get('type') diff --git a/static/charts.html b/static/charts.html new file mode 100644 index 0000000..a849106 --- /dev/null +++ b/static/charts.html @@ -0,0 +1,85 @@ + + + + + + +
+
+
+ + + \ No newline at end of file