2.1 KiB
2.1 KiB
| id | type | title | tags | importance | confidence | created | updated | relations | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 947fe7fd-b23c-4e46-8065-51c0519f2756 | fix | Fix: Remove debug print(req.scope) from paper-dynasty-database get_docs route |
|
0.4 | 0.8 | 2026-03-03T04:36:40.503397+00:00 | 2026-03-04T00:19:09.334832+00:00 |
|
Problem
app/main.py:56 in paper-dynasty-database had print(req.scope) inside the get_docs FastAPI route. This logged the full ASGI request scope dict to stdout on every /api/docs page load — debug code left in production.
Fix
Removed the single print(req.scope) line. The route still uses req.scope.get('root_path') for the openapi URL — only the debug print was removed.
Files Changed
app/main.py— removed line 56print(req.scope)
Notes
- Linter (ruff/black) auto-reformatted the file on save: import reflow, single→double quotes, trailing commas. Functional diff is just the removed print.
- PR #32: cal/paper-dynasty-database#32