From 52b5c6bd2496d06c0828dbed84859b39a1f4c2ff Mon Sep 17 00:00:00 2001 From: micaiah parker Date: Fri, 10 Aug 2018 18:20:49 -0400 Subject: [PATCH] init --- app.py | 4 ++-- templates/index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 %}