paper-dynasty-database/storage/templates
Cal Corum 6ab50ba5f2
All checks were successful
Build Docker Image / build (pull_request) Successful in 3m32s
fix: add asyncio.Lock to get_browser() and deduplicate font-face blocks
Address two review findings from PR #94:

1. Race condition: concurrent requests could both launch Chromium when
   _browser is None. Wrap the init check in asyncio.Lock so only one
   coroutine creates the browser process.

2. Font duplication: the WOFF2 files are variable fonts covering all
   needed weights. Consolidate 5 @font-face blocks (3x Open Sans,
   2x Source Sans 3) into 2 using CSS font-weight range syntax,
   saving ~163KB of redundant base64 per render.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 08:28:58 -05:00
..
player_card.html feat: render pipeline optimization (Phase 0) 2026-03-13 00:06:58 -05:00
result_columns.html Add missing card templates for PostgreSQL deployment 2026-02-01 19:18:04 -06:00
results_vl.html Add missing card templates for PostgreSQL deployment 2026-02-01 19:18:04 -06:00
results_vr.html Add missing card templates for PostgreSQL deployment 2026-02-01 19:18:04 -06:00
style.html fix: add asyncio.Lock to get_browser() and deduplicate font-face blocks 2026-03-13 08:28:58 -05:00
topright_batter.html Add missing card templates for PostgreSQL deployment 2026-02-01 19:18:04 -06:00
topright_pitcher.html Add missing card templates for PostgreSQL deployment 2026-02-01 19:18:04 -06:00