Reverse archive page

This commit is contained in:
Hugo 2023-11-12 10:29:32 +01:00
parent 1d20360c46
commit 828be8cd8f

View File

@ -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))