diff options
author | cos <cos> | 2022-05-08 11:29:34 +0200 |
---|---|---|
committer | cos <cos> | 2022-05-08 11:29:48 +0200 |
commit | 88b502975957a944a033fd7725aabc2e74a464b2 (patch) | |
tree | cfcfafca5cb6361027f08466f5f1851e3248dd9a | |
parent | 9cce59fb0878511be1a6dca92d994ca93a739d1f (diff) | |
download | calendar-cli-88b502975957a944a033fd7725aabc2e74a464b2.zip |
Make workaround cope with perpetually repeated eventstmp/agenda_rrule_workaround
-rwxr-xr-x | calendar-cli.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar-cli.py b/calendar-cli.py index cec2e4d..933e330 100755 --- a/calendar-cli.py +++ b/calendar-cli.py @@ -558,6 +558,8 @@ def calendar_agenda(caldav_conn, args): rrule = rrulestr(event.rrule.value, dtstart=event.dtstart.value, tzids=tzinfo) dtstart_generator = rrule.xafter(search_dtstart) for instance_dtstart in dtstart_generator: + if instance_dtstart > search_dtend: + break repeated_events_ = find_calendar(caldav_conn, args).date_search(instance_dtstart, search_dtend, expand=True) for event_cal_ in repeated_events_: repeated_events__ = event_cal_.instance.components() |