fix: misc issues

This commit is contained in:
Jannat Patel
2026-01-14 09:24:24 +05:30
parent 4c81eef80d
commit 8ff339b7ed
8 changed files with 126 additions and 32 deletions

View File

@@ -73,7 +73,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-12-04 12:53:38.246250",
"modified": "2026-01-14 08:53:16.672825",
"modified_by": "sayali@frappe.io",
"module": "LMS",
"name": "LMS Batch Enrollment",
@@ -108,6 +108,18 @@
"if_owner": 1,
"read": 1,
"role": "LMS Student"
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Batch Evaluator",
"share": 1,
"write": 1
}
],
"row_format": "Dynamic",

View File

@@ -76,7 +76,7 @@
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-05-21 15:58:51.667270",
"modified": "2026-01-14 08:53:38.088168",
"modified_by": "sayali@frappe.io",
"module": "LMS",
"name": "LMS Batch Feedback",
@@ -105,6 +105,30 @@
"role": "LMS Student",
"share": 1,
"write": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Moderator",
"share": 1,
"write": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Batch Evaluator",
"share": 1,
"write": 1
}
],
"row_format": "Dynamic",

View File

@@ -177,7 +177,7 @@
"link_fieldname": "live_class"
}
],
"modified": "2025-05-27 14:44:35.679712",
"modified": "2026-01-14 08:54:07.684781",
"modified_by": "sayali@frappe.io",
"module": "LMS",
"name": "LMS Live Class",
@@ -215,6 +215,18 @@
"report": 1,
"role": "LMS Student",
"share": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Batch Evaluator",
"share": 1,
"write": 1
}
],
"row_format": "Dynamic",

View File

@@ -155,11 +155,17 @@ def create_attendance(live_class, data):
doc = frappe.new_doc("LMS Live Class Participant")
doc.live_class = live_class.name
doc.member = participant.get("user_email")
doc.joined_at = participant.get("join_time")
doc.left_at = participant.get("leave_time")
doc.duration = participant.get("duration")
doc.joined_at = get_datetime(participant.get("join_time"))
doc.left_at = get_datetime(participant.get("leave_time"))
doc.duration = get_minutes(participant.get("duration"))
doc.insert()
def update_attendees_count(live_class, data):
frappe.db.set_value("LMS Live Class", live_class.name, "attendees", len(data))
def get_minutes(duration_in_seconds):
if duration_in_seconds:
return int(duration_in_seconds) // 60
return 0

View File

@@ -89,8 +89,8 @@
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-05-27 22:32:24.196643",
"modified_by": "Administrator",
"modified": "2026-01-14 08:54:21.421321",
"modified_by": "sayali@frappe.io",
"module": "LMS",
"name": "LMS Live Class Participant",
"owner": "Administrator",
@@ -106,6 +106,30 @@
"role": "System Manager",
"share": 1,
"write": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Moderator",
"share": 1,
"write": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Batch Evaluator",
"share": 1,
"write": 1
}
],
"row_format": "Dynamic",