feat: course creation resources

This commit is contained in:
Jannat Patel
2024-03-01 10:57:31 +05:30
parent 8f504a8043
commit 80e9984db0
6 changed files with 365 additions and 164 deletions

View File

@@ -267,3 +267,12 @@ def get_chart_details():
)
details.lesson_completions = frappe.db.count("LMS Course Progress")
return details
@frappe.whitelist()
def get_file_info(file_url):
"""Get file info for the given file URL."""
file_info = frappe.db.get_value(
"File", {"file_url": file_url}, ["file_name", "file_size", "file_url"], as_dict=1
)
return file_info

View File

@@ -82,5 +82,5 @@ lms.patches.v1_0.create_batch_source
[post_model_sync]
lms.patches.v1_0.batch_tabs_settings
execute:frappe.delete_doc("Notification", "Assignment Submission Notification")
lms.patches.v1_0.change_jobs_url #17-01-2024
lms.patches.v1_0.change_jobs_url #19-01-2024
lms.patches.v1_0.custom_perm_for_discussions #14-01-2024