mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2026-03-18 19:26:31 +01:00
refactor: backend standardization (service layer, validation, route splitting) + image cache and Scryfall API fixes
This commit is contained in:
parent
e81b47bccf
commit
f784741416
35 changed files with 7054 additions and 4344 deletions
|
|
@ -58,6 +58,7 @@ class ScryfallBulkDataClient:
|
|||
try:
|
||||
req = Request(url)
|
||||
req.add_header("User-Agent", "MTG-Deckbuilder/3.0 (Image Cache)")
|
||||
req.add_header("Accept", "application/json")
|
||||
with urlopen(req, timeout=30) as response:
|
||||
import json
|
||||
return json.loads(response.read().decode("utf-8"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue