mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-30 03:10:00 +00:00
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:
3
app.py
3
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"),
|
||||
)
|
||||
|
||||
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user