Sort fics properly on stats pages … I think?

This commit is contained in:
trémeur 2023-12-03 11:45:06 +00:00
parent 663cac35b9
commit 4b9257b245

View file

@ -362,6 +362,7 @@ def yeargen(local=False):
if ficlogged == False:
combinedeets.append(fic)
ficdeets = combinedeets
ficdeets = sorted(ficdeets,key=lambda d: d["date"])
totalwords = 0
for fic in ficdeets:
totalwords += fic["words"]