From 2f92cbea29972096453e5cd44a6bc6fb7812f681 Mon Sep 17 00:00:00 2001 From: Joel Barnes Date: Mon, 6 Jan 2025 10:27:44 -0500 Subject: [PATCH] use some booster configuration --- spells/cards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spells/cards.py b/spells/cards.py index 346b8d5..54e58f9 100644 --- a/spells/cards.py +++ b/spells/cards.py @@ -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()