fix: do not link live class to event as event is already linked to live class

This commit is contained in:
Jannat Patel
2026-03-04 18:08:55 +05:30
parent 2e3baff401
commit 292b48fbac
2 changed files with 1 additions and 5 deletions

View File

@@ -199,8 +199,6 @@ def create_event(evaluation: dict):
"subject": f"Evaluation of {evaluation.member_name}",
"starts_on": f"{evaluation.date} {evaluation.start_time}",
"ends_on": f"{evaluation.date} {evaluation.end_time}",
"reference_doctype": "LMS Certificate Request",
"reference_docname": evaluation.name,
}
)
event.save()

View File

@@ -58,7 +58,7 @@ class LMSLiveClass(Document):
event.subject = f"Live Class on {self.title}"
event.starts_on = start
event.ends_on = get_datetime(start) + timedelta(minutes=cint(self.duration))
event.description = self._build_event_description()
event.description = self.build_event_description()
event.save(ignore_permissions=True)
@@ -99,8 +99,6 @@ class LMSLiveClass(Document):
"event_type": "Public",
"starts_on": start,
"ends_on": get_datetime(start) + timedelta(minutes=cint(self.duration)),
"reference_doctype": self.doctype,
"reference_docname": self.name,
}
)