From b8bd8d802be8e42b1140917484f1eb78eb90eef9 Mon Sep 17 00:00:00 2001 From: Stef Date: Thu, 7 Aug 2025 21:36:25 +0200 Subject: [PATCH] Change server port to 80 and improve log removal redirect Updated app.py to run the server on port 80 without SSL context. Enhanced the log removal route to redirect with the current offset if present in the session. --- app.py | 3 +-- application/user/routes.py | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) 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"))