From 1d20360c464e1adcdebba51a0f4e2026ac50fa65 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 12 Nov 2023 10:16:22 +0100 Subject: [PATCH 1/2] December events --- dogadjaji.csv | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dogadjaji.csv b/dogadjaji.csv index 00aa1bb2..ce017130 100644 --- a/dogadjaji.csv +++ b/dogadjaji.csv @@ -85,5 +85,9 @@ datum, vreme, lokacija, tema 14-11-2023, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Uvod u elektroniku EP01 20-11-2023, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Git 21-11-2023, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Uvod u elektroniku EP02 -27-11-2023, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Kviz vece +27-11-2023, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Kviz veče 28-11-2023, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Uvod u elektroniku EP03 +04-12-2023, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Lighting talks +05-12-2023, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Idejno-politička diskusija +12-12-2023, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Uvod u elektroniku E04 +18-12-2023, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Arduino \ No newline at end of file From 828be8cd8fc661df31f5b8c40139fcdd349eefdc Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 12 Nov 2023 10:29:32 +0100 Subject: [PATCH 2/2] Reverse archive page --- prep.py | 1 + 1 file changed, 1 insertion(+) diff --git a/prep.py b/prep.py index 03633dcf..6e2c582c 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))