forked from cccb-website-team/www
fixed ics generation
This commit is contained in:
parent
4068fab565
commit
2b5277a3a0
7 changed files with 98 additions and 56 deletions
|
@ -18,6 +18,10 @@ for icsfilestr in glob("public/*/**/*.ics", recursive=True):
|
|||
|
||||
for calendar in calendars:
|
||||
for event in calendar.subcomponents:
|
||||
if event.name != "VEVENT":
|
||||
continue
|
||||
if "DTSTART" not in event:
|
||||
continue
|
||||
merged.add_component(event)
|
||||
|
||||
outfile = "static/all.ics"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue