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")
|
||||
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…
Add table
Add a link
Reference in a new issue