From 59064a60883d22f1180a9bc192c4463938a27f16 Mon Sep 17 00:00:00 2001 From: FrederikBaerentsen Date: Thu, 18 Apr 2024 07:53:06 +0200 Subject: [PATCH] Added navbar and redirect to create page --- app.py | 5 +++-- templates/create.html | 33 +++++++++++++++++++++------------ 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/app.py b/app.py index 4adcb7d..c2ab94e 100644 --- a/app.py +++ b/app.py @@ -222,12 +222,13 @@ def create(): conn.commit() + conn.close() + return redirect('/') conn.close() print('Count: ' + str(count)) - return render_template('create.html') def generate_unique_set_unique(): @@ -513,4 +514,4 @@ def save_number(tmp): return Response(status=204) if __name__ == '__main__': - app.run(host='192.168.10.109', debug=True, port=3333) + app.run(host='0.0.0.0', debug=True, port=3333) diff --git a/templates/create.html b/templates/create.html index 250702a..6d1d632 100644 --- a/templates/create.html +++ b/templates/create.html @@ -1,6 +1,6 @@ - - + + @@ -9,9 +9,26 @@ href="https://cdn.jsdelivr.net/npm/bulma@1.0.0/css/bulma.min.css"> +
-
+
@@ -19,21 +36,13 @@
-
-
- -
-
-
+