Sort faves alphabetically

master
trémeur 5 days ago
parent 99ccff47c1
commit 5a4de3d8cd

@ -264,7 +264,8 @@ def indexgen():
content.write("</p>\n")
if len(variables.faves) > 0:
content.write("<h2>faves</h2>\n<p>")
for card in variables.faves:
faveslist = sorted(variables.faves)
for card in faveslist:
content.write(tcgcore.printcard(card))
content.write("</p>\n")
content.close()

@ -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:

Loading…
Cancel
Save