mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-16 07:30:13 +01:00
5 lines
324 B
Python
5 lines
324 B
Python
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'))
|