fix: minor issues

This commit is contained in:
Jannat Patel
2021-09-20 12:10:35 +05:30
parent 0ab708396a
commit 64048a8a18
16 changed files with 48 additions and 16 deletions

View File

@@ -11,7 +11,7 @@ def get_context(context):
}
def get_courses():
course_names = frappe.get_all("LMS Course", filters={"is_published": True}, pluck="name")
course_names = frappe.get_all("LMS Course", filters={"is_published": True}, order_by="upcoming", pluck="name")
courses = []
for course in course_names:
courses.append(frappe.get_doc("LMS Course", course))