genanki
genanki copied to clipboard
Fix comparison between set and dictionary
The check card_ords == {}
will always evaluate to False
, even when it is empty. This is because card_ords
is a set, and {}
is a dictionary.
>>> set() == {}
False
The intended check was probably something like "card ords is empty", which can be expressed as if not card_ords
.