fix: removed chapter description when fetching outline

This commit is contained in:
Jannat Patel
2024-10-31 09:51:50 +05:30
parent da5910d40d
commit ae4e5539d7
2 changed files with 2 additions and 191 deletions

View File

@@ -109,7 +109,7 @@ def get_chapters(course):
chapter_details = frappe.db.get_value(
"Course Chapter",
{"name": chapter.chapter},
["name", "title", "description"],
["name", "title"],
as_dict=True,
)
chapter.update(chapter_details)
@@ -1133,7 +1133,7 @@ def get_course_outline(course, progress=False):
chapter_details = frappe.db.get_value(
"Course Chapter",
chapter.chapter,
["name", "title", "description"],
["name", "title"],
as_dict=True,
)
chapter_details["idx"] = chapter.idx