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.
This commit is contained in:
2025-08-07 21:36:25 +02:00
parent f81329cedd
commit b8bd8d802b
2 changed files with 3 additions and 2 deletions

View File

@@ -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"))