mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Fix #180
This commit is contained in:
parent
e35479b080
commit
0490930c5e
1 changed files with 5 additions and 2 deletions
|
|
@ -11,6 +11,7 @@ from .base import Item, Storage
|
||||||
from .http import HTTP_STORAGE_PARAMETERS, USERAGENT, prepare_auth, \
|
from .http import HTTP_STORAGE_PARAMETERS, USERAGENT, prepare_auth, \
|
||||||
prepare_verify
|
prepare_verify
|
||||||
from .. import exceptions, log, utils
|
from .. import exceptions, log, utils
|
||||||
|
from .._compat import text_type
|
||||||
|
|
||||||
|
|
||||||
dav_logger = log.get(__name__)
|
dav_logger = log.get(__name__)
|
||||||
|
|
@ -569,10 +570,12 @@ class CaldavStorage(DavStorage):
|
||||||
elif start_date is not None and end_date is not None:
|
elif start_date is not None and end_date is not None:
|
||||||
namespace = dict(datetime.__dict__)
|
namespace = dict(datetime.__dict__)
|
||||||
namespace['start_date'] = self.start_date = \
|
namespace['start_date'] = self.start_date = \
|
||||||
(eval(start_date, namespace) if isinstance(start_date, str)
|
(eval(start_date, namespace)
|
||||||
|
if isinstance(start_date, (bytes, text_type))
|
||||||
else start_date)
|
else start_date)
|
||||||
self.end_date = \
|
self.end_date = \
|
||||||
(eval(end_date, namespace) if isinstance(end_date, str)
|
(eval(end_date, namespace)
|
||||||
|
if isinstance(end_date, (bytes, text_type))
|
||||||
else end_date)
|
else end_date)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue