@@ -532,8 +532,8 @@ class Documentation(CalendarEvent):
# if so, add the documentation to a list, if not, create a new one
return[
(
event_reference_obj.documentation.first()# TODO: probably show all documentations
if (event_reference_obj:=event["REFERENCE_OBJ"]).documentation.exists()else
existing_documentations.first()
if (existing_documentations:=(event_reference_obj:=event["REFERENCE_OBJ"]).documentation.filter(datetime_start=event["DTSTART"].dt,datetime_end=event["DTEND"].dt)).exists()else