case-insensitive set codes

This commit is contained in:
Holly 2023-06-30 18:30:27 +00:00
parent f6335528f5
commit cec6ab372d
1 changed files with 2 additions and 2 deletions

View File

@ -193,11 +193,11 @@ async def get_cards(card_names):
c = scrython.cards.Named(fuzzy=replacement) c = scrython.cards.Named(fuzzy=replacement)
break break
else: else:
c = scrython.cards.Named(fuzzy=name, set=set_code) c = scrython.cards.Named(fuzzy=name, set=set_code.lower())
if collector_num: if collector_num:
c_by_num = scrython.cards.Collector( c_by_num = scrython.cards.Collector(
code=set_code, code=set_code.lower(),
collector_number=collector_num, collector_number=collector_num,
) )
# Make sure the provided name matches # Make sure the provided name matches