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 @@ - -
+ +