We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3cb248 commit c574f74Copy full SHA for c574f74
backend/spellbook/views/utils.py
@@ -73,7 +73,7 @@ def next_card(raw_card: RawCardInDeck, card_set: Multiset[int]):
73
for commander in raw_deck.commanders:
74
next_card(commander, commanders)
75
cards = main.union(commanders)
76
- identity = merge_identities(identity_dict[id] for id in cards if id in identity_dict)
+ identity = merge_identities(identity_dict[id] for id in cards.distinct_elements() if id in identity_dict)
77
return Deck(main=FrozenMultiset(main), commanders=FrozenMultiset(commanders), identity=identity)
78
79
0 commit comments