feat: course creation resources
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user