mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Remove spaces from empty lines
This commit is contained in:
parent
dfc215b63f
commit
4e8f518cbb
1 changed files with 2 additions and 2 deletions
|
@ -222,7 +222,7 @@ def _time_range_match(vobject_item, filter_, child_name):
|
|||
dtstart = child.dtstart.value
|
||||
if isinstance(dtstart, datetime) and not dtstart.tzinfo:
|
||||
dtstart = dtstart.replace(tzinfo=timezone.utc)
|
||||
|
||||
|
||||
if not isinstance(dtstart, datetime):
|
||||
dtstart_is_datetime = False
|
||||
# TODO: changing dates to datetimes may be wrong because of tz
|
||||
|
@ -240,7 +240,7 @@ def _time_range_match(vobject_item, filter_, child_name):
|
|||
tzinfo=timezone.utc)
|
||||
if isinstance(dtend, datetime) and not dtend.tzinfo:
|
||||
dtend = dtend.replace(tzinfo=timezone.utc)
|
||||
|
||||
|
||||
return start < dtend and end > dtstart
|
||||
elif duration is not None:
|
||||
duration = duration.value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue