Sort fics properly in month chart

master
trémeur 1 year ago
parent 08f04db57f
commit 70c9cba2bf

@ -572,6 +572,7 @@ def yeargen(local=False):
newfic["words"] += fic["words"] newfic["words"] += fic["words"]
if ficlogged == False: if ficlogged == False:
monthcombine.append(fic) monthcombine.append(fic)
monthcombine = sorted(monthcombine,key=lambda d: d["date"])
jan = {"fics":[],"words":0} jan = {"fics":[],"words":0}
feb = {"fics":[],"words":0} feb = {"fics":[],"words":0}
mar = {"fics":[],"words":0} mar = {"fics":[],"words":0}

Loading…
Cancel
Save