Skip to content

Commit

Permalink
use some booster configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
oelarnes committed Jan 6, 2025
1 parent 7067294 commit 2f92cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spells/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def card_df(draft_set_code: str, names: list[str]) -> pl.DataFrame:
draft_set_json = _fetch_mtg_json(draft_set_code)
booster_info = draft_set_json["data"]["booster"]

booster_type = "play" if "play" in booster_info else "draft"
booster_type = "play" if "play" in booster_info else "draft" if "draft" in booster_info else list(booster_info.keys())[0]
set_codes = booster_info[booster_type]["sourceSetCodes"]
set_codes.reverse()

Expand Down

0 comments on commit 2f92cbe

Please sign in to comment.