fix: removed fields array as there is pluck

This commit is contained in:
Jannat Patel
2023-08-25 17:45:46 +05:30
parent 1cc168404a
commit 86434ea320

View File

@@ -156,7 +156,7 @@ def get_tags(course):
def get_instructors(course):
instructor_details = []
instructors = frappe.get_all(
"Course Instructor", {"parent": course}, ["instructor"], order_by="idx", pluck="instructor"
"Course Instructor", {"parent": course}, order_by="idx", pluck="instructor"
)
if not instructors:
instructors = frappe.db.get_value("LMS Course", course, "owner").split(" ")