mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Fix bug in handling item_types
This commit is contained in:
parent
81b4c9eb65
commit
82af0fad2e
1 changed files with 2 additions and 1 deletions
|
|
@ -475,7 +475,8 @@ class CaldavStorage(DavStorage):
|
|||
item_types='VTODO, VEVENT', **kwargs):
|
||||
super(CaldavStorage, self).__init__(**kwargs)
|
||||
if isinstance(item_types, str):
|
||||
item_types = [x.strip() for x in item_types.split(',')]
|
||||
item_types = filter(bool,
|
||||
(x.strip() for x in item_types.split(',')))
|
||||
self.item_types = tuple(item_types)
|
||||
if (start_date is None) != (end_date is None):
|
||||
raise ValueError('If start_date is given, '
|
||||
|
|
|
|||
Loading…
Reference in a new issue