Procházet zdrojové kódy

fixes test_report_with_expand_property_all_day_event

Signed-off-by: David Greaves <david@dgreaves.com>
David Greaves před 8 měsíci
rodič
revize
056954387d
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      radicale/app/report.py

+ 2 - 1
radicale/app/report.py

@@ -402,7 +402,8 @@ def _expand(
             if time_range_start is not None and time_range_end is not None:
                 dtstart = recurrence_utc
                 dtend = dtstart + duration if duration else dtstart
-                if not (dtstart < time_range_end and dtend > time_range_start):
+                # Start includes the time, end does not
+                if not (dtstart <= time_range_end and dtend > time_range_start):
                     logger.debug("Recurrence %s filtered out by time-range", recurrence_utc)
                     continue