Sort faves alphabetically
This commit is contained in:
parent
99ccff47c1
commit
5a4de3d8cd
2 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue