forked from Decentrala/website
Merge pull request 'December events' (#22) from hugo/website2:master into master
Reviewed-on: Decentrala/website#22
This commit is contained in:
commit
a39f257b94
@ -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
|
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
|
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
|
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
|
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
prep.py
1
prep.py
@ -50,6 +50,7 @@ events = sorted(load_events("dogadjaji.csv"), key=lambda e: e["date"])
|
|||||||
today = datetime.today().date()
|
today = datetime.today().date()
|
||||||
|
|
||||||
past_events = list(filter(lambda e: e["date"] <= today, events))
|
past_events = list(filter(lambda e: e["date"] <= today, events))
|
||||||
|
past_events.reverse()
|
||||||
new_events = list(filter(lambda e: e["date"] >= today, events))
|
new_events = list(filter(lambda e: e["date"] >= today, events))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user