fix: Content fetching for articles and videos
diff --git a/erpnext/www/lms.py b/erpnext/www/lms.py
index c2a8bd5..b91dcc9 100644
--- a/erpnext/www/lms.py
+++ b/erpnext/www/lms.py
@@ -280,4 +280,11 @@
def get_topics(course_name):
course = frappe.get_doc('Course', course_name)
topics = course.get_topics()
- return topics
\ No newline at end of file
+ return topics
+
+@frappe.whitelist()
+def get_content(type, content):
+ try:
+ return frappe.get_doc(type, content)
+ except:
+ return None
\ No newline at end of file