Skip to content

Fix TemplateResponse argument order in dashboard routes#118

Merged
podcctv merged 1 commit into
mainfrom
codex/fix-500-internal-server-error
Apr 4, 2026
Merged

Fix TemplateResponse argument order in dashboard routes#118
podcctv merged 1 commit into
mainfrom
codex/fix-500-internal-server-error

Conversation

@podcctv

@podcctv podcctv commented Apr 4, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Fix the 500 Internal Server Error when rendering /web/ which was caused by passing a dict as the template name due to the wrong TemplateResponse argument order.

Description

  • Updated all dashboard route handlers in master-api/app/routers/dashboard.py to use templates.TemplateResponse(request, "<template>.html") instead of TemplateResponse("<template>.html", {"request": request}).

Testing

  • Verified the edits with rg -n "TemplateResponse(" master-api/app/routers/dashboard.py and ran python -m compileall -q master-api/app, both commands completed successfully.

Codex Task

@podcctv podcctv merged commit 019d1b9 into main Apr 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant