Fix: only expand VEVENT on REPORT request

This commit is contained in:
Peter Bieringer
2024-10-12 07:25:29 +02:00
parent a8baea9b19
commit 59c638461b
2 changed files with 2 additions and 1 deletions

View File

@@ -257,7 +257,7 @@ def xml_report(base_prefix: str, path: str, xml_request: Optional[ET.Element],
element.text = item.serialize()
expand = prop.find(xmlutils.make_clark("C:expand"))
if expand is not None:
if expand is not None and item.component_name == 'VEVENT':
start = expand.get('start')
end = expand.get('end')