From 828be8cd8fc661df31f5b8c40139fcdd349eefdc Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 12 Nov 2023 10:29:32 +0100 Subject: [PATCH] Reverse archive page --- prep.py | 1 + 1 file changed, 1 insertion(+) diff --git a/prep.py b/prep.py index 03633dc..6e2c582 100755 --- a/prep.py +++ b/prep.py @@ -50,6 +50,7 @@ events = sorted(load_events("dogadjaji.csv"), key=lambda e: e["date"]) today = datetime.today().date() past_events = list(filter(lambda e: e["date"] <= today, events)) +past_events.reverse() new_events = list(filter(lambda e: e["date"] >= today, events))