fix: live class issues

This commit is contained in:
Jannat Patel
2025-10-09 15:35:00 +05:30
parent 1a00d708e1
commit b273e34ac8
2 changed files with 11 additions and 3 deletions

View File

@@ -38,8 +38,12 @@ class LMSLiveClass(Document):
def add_event_participants(self, event, calendar):
participants = frappe.get_all("LMS Batch Enrollment", {"batch": self.batch_name}, pluck="member")
instructors = frappe.get_all("Course Instructor", {"parent": self.batch_name}, pluck="instructor")
participants.append(frappe.session.user)
participants.extend(instructors)
participants = list(set(participants))
for participant in participants:
frappe.get_doc(
{