diff --git a/app.py b/app.py index e4f1b67..902ef1f 100644 --- a/app.py +++ b/app.py @@ -1,4 +1,4 @@ -from flask import Flask, render_template, jsonify, redirect +from flask import Flask, render_template, jsonify, redirect, url_for from char import get_stats, data app = Flask(__name__) @@ -15,7 +15,7 @@ def _get_stats(): def get_data(): return jsonify(data) -@app.route('/submit', methods=["POST"]) +@app.route('/submit') def submit(): return redirect(url_for('index')) diff --git a/templates/index.html b/templates/index.html index 00c7804..7c60bf2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,7 +3,7 @@
-
+
@@ -83,4 +83,4 @@
-{% endblock %} \ No newline at end of file +{% endblock %}