Skip to content

Commit

Permalink
Update rotation_script.py
Browse files Browse the repository at this point in the history
  • Loading branch information
silasary authored Oct 4, 2024
1 parent e58e87c commit 7ae2e1e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rotation_script/rotation_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,11 @@ def prepare_flavornames() -> dict[str, str]:
renames = {}
for c in flavored:
if c['layout'] == 'reversible_card':
renames[c['card_faces'][0]['flavor_name']] = c['card_faces'][0]['name']
renames[c['card_faces'][1]['flavor_name']] = c['card_faces'][1]['name']
try:
renames[c['card_faces'][0]['flavor_name']] = c['card_faces'][0]['name']
renames[c['card_faces'][1]['flavor_name']] = c['card_faces'][1]['name']
except KeyError:
pass
else:
# So far, we don't need to worry about DFCs with flavor names, as none are available on MTGO.
# In the future, we may need to adjust this code to match pricefiles
Expand Down

0 comments on commit 7ae2e1e

Please sign in to comment.