paper-dynasty-database/app
Cal Corum f471354e39 feat: persistent browser instance for card rendering (#89)
Replace per-request Chromium launch/teardown with a module-level
persistent browser. get_browser() lazy-initializes with is_connected()
auto-reconnect; shutdown_browser() is wired into FastAPI lifespan for
clean teardown. Pages are created per-request and closed in a finally
block to prevent leaks.

Also fixed pre-existing ruff errors in staged files (E402 noqa comments,
F541 f-string prefix removal, F841 unused variable rename) that were
blocking the pre-commit hook.

Closes #89

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 11:20:42 -05:00
..
models fix: remove evolution models from WP-02 PR (#82) 2026-03-12 17:02:00 -05:00
routers_v2 feat: persistent browser instance for card rendering (#89) 2026-03-16 11:20:42 -05:00
seed feat: evolution track seed data and tests (WP-03) (#68) 2026-03-12 17:35:12 -05:00
services feat: formula engine for evolution value computation (WP-09) 2026-03-12 19:34:40 -05:00
__init__.py Initial Commit with /current 2023-09-13 14:44:26 -05:00
card_creation.py Update card_creation.py 2024-02-24 21:36:44 -06:00
db_engine.py fix: remove evolution models from WP-02 PR (#82) 2026-03-12 17:02:00 -05:00
db_helpers.py Fix PostgreSQL upsert column names and CSV null handling 2026-01-30 17:28:40 -06:00
dependencies.py fix: use constant-time comparison for bearer token validation (#8) 2026-03-05 03:43:59 +00:00
main.py feat: persistent browser instance for card rendering (#89) 2026-03-16 11:20:42 -05:00
player_scouting.py Update player_scouting.py 2023-09-24 19:00:21 -05:00