From 70c9cba2bffcf7690f00a1b1545158b5668350b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Wed, 27 Dec 2023 20:14:29 +0000 Subject: [PATCH] Sort fics properly in month chart --- statsgen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/statsgen.py b/statsgen.py index da43f18..fb2001f 100644 --- a/statsgen.py +++ b/statsgen.py @@ -572,6 +572,7 @@ def yeargen(local=False): newfic["words"] += fic["words"] if ficlogged == False: monthcombine.append(fic) + monthcombine = sorted(monthcombine,key=lambda d: d["date"]) jan = {"fics":[],"words":0} feb = {"fics":[],"words":0} mar = {"fics":[],"words":0}