store: Fix: Remove debug print(req.scope) from paper-dynasty-database get_docs route

This commit is contained in:
Cal Corum 2026-03-02 22:36:40 -06:00
parent 6a7ce04f9a
commit f51f5964e4

View File

@ -0,0 +1,23 @@
---
id: 947fe7fd-b23c-4e46-8065-51c0519f2756
type: fix
title: "Fix: Remove debug print(req.scope) from paper-dynasty-database get_docs route"
tags: [paper-dynasty, fastapi, python, debug-cleanup, tech-debt]
importance: 0.4
confidence: 0.8
created: "2026-03-03T04:36:40.503397+00:00"
updated: "2026-03-03T04:36:40.503397+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 56 `print(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: https://git.manticorum.com/cal/paper-dynasty-database/pulls/32