Skip to content

Commit c574f74

Browse files
committed
Fix iteration
1 parent d3cb248 commit c574f74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/spellbook/views/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def next_card(raw_card: RawCardInDeck, card_set: Multiset[int]):
7373
for commander in raw_deck.commanders:
7474
next_card(commander, commanders)
7575
cards = main.union(commanders)
76-
identity = merge_identities(identity_dict[id] for id in cards if id in identity_dict)
76+
identity = merge_identities(identity_dict[id] for id in cards.distinct_elements() if id in identity_dict)
7777
return Deck(main=FrozenMultiset(main), commanders=FrozenMultiset(commanders), identity=identity)
7878

7979

0 commit comments

Comments
 (0)