kopia lustrzana https://github.com/jazzband/icalevents
removed sorting at incorrect location
rodzic
6e1895775c
commit
4b0d65cc20
|
@ -320,7 +320,7 @@ def parse_events(content, start=None, end=None, default_span=timedelta(days=7)):
|
||||||
:param start: start date for search, default today (in UTC format)
|
:param start: start date for search, default today (in UTC format)
|
||||||
:param end: end date for search (in UTC format)
|
:param end: end date for search (in UTC format)
|
||||||
:param default_span: default query length (one week)
|
:param default_span: default query length (one week)
|
||||||
:return: events as list sorted by ascending time
|
:return: events as list
|
||||||
"""
|
"""
|
||||||
if not start:
|
if not start:
|
||||||
start = now()
|
start = now()
|
||||||
|
@ -474,7 +474,7 @@ def parse_events(content, start=None, end=None, default_span=timedelta(days=7)):
|
||||||
]:
|
]:
|
||||||
result.remove(event)
|
result.remove(event)
|
||||||
|
|
||||||
return result.sort()
|
return result
|
||||||
|
|
||||||
|
|
||||||
def parse_rrule(component, tz=UTC):
|
def parse_rrule(component, tz=UTC):
|
||||||
|
|
Ładowanie…
Reference in New Issue