mirror of
https://github.com/frappe/lms.git
synced 2026-04-19 22:52:29 +03:00
fix: do not link live class to event as event is already linked to live class
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user