mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-03-21 17:54:59 -05:00
formatting
Use same formatting as before
This commit is contained in:
parent
10aceba7a9
commit
f3ac505dac
|
|
@ -214,7 +214,11 @@ def scryfall2mtgjson(scryfall_cards: List[Dict[str, Any]]) -> List[Dict[str, Any
|
|||
super_types, types, sub_types = build_types(sf_card)
|
||||
|
||||
if "card_faces" in sf_card:
|
||||
image = sf_card["card_faces"][0].get("image_uris", {}).get("normal", "")
|
||||
image = (
|
||||
sf_card["card_faces"][0]
|
||||
.get("image_uris", {})
|
||||
.get("normal", "")
|
||||
)
|
||||
else:
|
||||
image = sf_card.get("image_uris", {}).get("normal", "")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user