diff --git a/indexgen.py b/indexgen.py index fd2096f..f8ff12d 100644 --- a/indexgen.py +++ b/indexgen.py @@ -264,7 +264,8 @@ def indexgen(): content.write("
\n") if len(variables.faves) > 0: content.write("") - for card in variables.faves: + faveslist = sorted(variables.faves) + for card in faveslist: content.write(tcgcore.printcard(card)) content.write("
\n") content.close() diff --git a/tcgcore.py b/tcgcore.py index c2ba491..a062911 100644 --- a/tcgcore.py +++ b/tcgcore.py @@ -62,7 +62,7 @@ def datemastered(deck): return mastered def collecting(deck): - if len (deckcards(deck)) < 20: + if 0 < len (deckcards(deck)) < 20: if deck in variables.highpriority: return True else: