diff --git a/app.py b/app.py index a861abe..a9b4864 100644 --- a/app.py +++ b/app.py @@ -85,7 +85,6 @@ def scan(): if __name__ == "__main__": app.run( host="0.0.0.0", - port=443, + port=80, debug=True, - ssl_context=("cert.pem", "key.pem"), ) diff --git a/application/user/routes.py b/application/user/routes.py index 4236c40..42b64dd 100644 --- a/application/user/routes.py +++ b/application/user/routes.py @@ -112,4 +112,6 @@ def remove_log(id: int): # Delete log db.session.delete(log) db.session.commit() + if "offset" in session: + return redirect(url_for("user.daily_log", offset=session["offset"])) return redirect(url_for("user.daily_log"))