Use correct RRULE

This commit is contained in:
Unrud 2021-12-18 22:14:04 +01:00
parent 83f53cb5cb
commit bfba027446

View File

@ -208,8 +208,8 @@ def visit_time_ranges(vobject_item: vobject.base.Component, child_name: str,
) -> Tuple[Iterable[date], bool]:
infinite = False
for rrule in child.contents.get("rrule", []):
if (";UNTIL=" not in child.rrule.value.upper() and
";COUNT=" not in child.rrule.value.upper()):
if (";UNTIL=" not in rrule.value.upper() and
";COUNT=" not in rrule.value.upper()):
infinite = True
break
if infinite: