From 5bbece2ebe28f53603ed2616bff12cf8d65f1bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Thu, 13 Jul 2023 09:45:21 +0100 Subject: [PATCH] Tweaks to stats display on homepage --- indexgen.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/indexgen.py b/indexgen.py index e9035a3..675edbe 100644 --- a/indexgen.py +++ b/indexgen.py @@ -1,4 +1,4 @@ -import os +import datetime, os from importlib import import_module import headerfooter @@ -42,8 +42,11 @@ def statslist(local=False): else: statspath = "/fic/stats/" + str(year) if yearlist.index(year) > 0: - statstring += " • " - statstring += "" + str(year) + "" + statstring += " • " + statstring += "" + str(year) + if year == (datetime.datetime.now()).year: + statstring += " (so far)" + statstring += "" linkedyears.append(statstring) listofyears = "".join(linkedyears) return listofyears