From 16430f29beedd79f53010921d8a192adda004364 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 19 Sep 2016 00:38:04 +0200 Subject: [PATCH] Allow multiple VTIMEZONE --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 62da552..4813cd0 100644 --- a/app.py +++ b/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'):