Allow multiple VTIMEZONE
This commit is contained in:
parent
2bfbb4c7ed
commit
16430f29be
1 changed files with 3 additions and 2 deletions
5
app.py
5
app.py
|
@ -40,8 +40,9 @@ def hello():
|
|||
for k, v in cal.items():
|
||||
other.add(k, v)
|
||||
|
||||
# Copy the VTIMEZONE component
|
||||
other.add_component(cal.walk('VTIMEZONE')[0])
|
||||
# Copy VTIMEZONE components
|
||||
for ev in cal.walk('VTIMEZONE'):
|
||||
other.add_component(ev)
|
||||
|
||||
# Filter and copy VEVENTs
|
||||
for ev in cal.walk('VEVENT'):
|
||||
|
|
Loading…
Reference in a new issue