diff --git a/.last-branch b/.last-branch index b8f575e..a001756 100644 --- a/.last-branch +++ b/.last-branch @@ -1 +1 @@ -v20260106-09-fix-ticket-detail-indent +v20260106-10-fix-remarks-indent-bad-gateway diff --git a/containers/backupchecks/src/backend/app/main/routes_remarks.py b/containers/backupchecks/src/backend/app/main/routes_remarks.py index 4c4f564..fcc2480 100644 --- a/containers/backupchecks/src/backend/app/main/routes_remarks.py +++ b/containers/backupchecks/src/backend/app/main/routes_remarks.py @@ -8,7 +8,6 @@ def remark_detail(remark_id: int): remark = Remark.query.get_or_404(remark_id) # Remark editing is disabled. Resolve the old remark and create a new one instead. - return redirect(url_for("main.remark_detail", remark_id=remark.id)) scopes = RemarkScope.query.filter(RemarkScope.remark_id == remark.id).order_by(RemarkScope.id.asc()).all() diff --git a/docs/changelog.md b/docs/changelog.md index d5c651d..696f3f6 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -72,6 +72,13 @@ - Fixed an IndentationError in routes_tickets.py that prevented the backend from booting (ticket_detail route). - Removed an accidentally indented redirect line after disabling ticket editing, restoring valid module syntax. +--- + +## v20260106-10-fix-remarks-indent-bad-gateway + +Fixed a Python IndentationError in the remarks detail route that caused Gunicorn to fail on startup. +Removed an incorrectly indented redirect statement so the module loads correctly and prevents Bad Gateway errors. + ================================================================================================================================================ ## v0.1.16