Sort faves alphabetically

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

@ -264,7 +264,8 @@ def indexgen():
content.write("</p>\n") content.write("</p>\n")
if len(variables.faves) > 0: if len(variables.faves) > 0:
content.write("<h2>faves</h2>\n<p>") 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(tcgcore.printcard(card))
content.write("</p>\n") content.write("</p>\n")
content.close() content.close()

@ -62,7 +62,7 @@ def datemastered(deck):
return mastered return mastered
def collecting(deck): def collecting(deck):
if len (deckcards(deck)) < 20: if 0 < len (deckcards(deck)) < 20:
if deck in variables.highpriority: if deck in variables.highpriority:
return True return True
else: else:

Loading…
Cancel
Save