Merge pull request 'December events' (#22) from hugo/website2:master into master

Reviewed-on: #22
This commit is contained in:
hugo 2023-11-12 09:32:59 +00:00
commit a39f257b94
2 changed files with 6 additions and 1 deletions

View File

@ -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
1 datum vreme lokacija tema
85 14-11-2023 19:00 DC Krov https://www.openstreetmap.org/node/10594728522 Uvod u elektroniku EP01
86 20-11-2023 19:00 DC Krov https://www.openstreetmap.org/node/10594728522 Git
87 21-11-2023 19:00 DC Krov https://www.openstreetmap.org/node/10594728522 Uvod u elektroniku EP02
88 27-11-2023 19:00 DC Krov https://www.openstreetmap.org/node/10594728522 Kviz vece Kviz veče
89 28-11-2023 19:00 DC Krov https://www.openstreetmap.org/node/10594728522 Uvod u elektroniku EP03
90 04-12-2023 19:00 DC Krov https://www.openstreetmap.org/node/10594728522 Lighting talks
91 05-12-2023 19:00 DC Krov https://www.openstreetmap.org/node/10594728522 Idejno-politička diskusija
92 12-12-2023 19:00 DC Krov https://www.openstreetmap.org/node/10594728522 Uvod u elektroniku E04
93 18-12-2023 19:00 DC Krov https://www.openstreetmap.org/node/10594728522 Arduino

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