mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-17 08:00:13 +01:00
feat(web): Core Refactor Phase A — extract sampling and cache modules; add adaptive TTL + eviction heuristics, Redis PoC, and metrics wiring. Tests added for TTL, eviction, exports, splash-adaptive, card index, and service worker. Docs+roadmap updated.
This commit is contained in:
parent
c4a7fc48ea
commit
a029d430c5
49 changed files with 3889 additions and 701 deletions
5
_tmp_check_metrics.py
Normal file
5
_tmp_check_metrics.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import urllib.request, json
|
||||
raw = urllib.request.urlopen("http://localhost:8000/themes/metrics").read().decode()
|
||||
js=json.loads(raw)
|
||||
print('example_enforcement_active=', js.get('preview',{}).get('example_enforcement_active'))
|
||||
print('example_enforce_threshold_pct=', js.get('preview',{}).get('example_enforce_threshold_pct'))
|
||||
Loading…
Add table
Add a link
Reference in a new issue