mirror of
https://github.com/frappe/lms.git
synced 2026-05-06 07:29:32 +03:00
fix: update certification categories to include label and value
This commit is contained in:
+1
-2
@@ -449,8 +449,7 @@ def get_certification_categories():
|
||||
for doc in docs:
|
||||
category = doc.course_title if doc.course_title else doc.batch_title
|
||||
if category not in categories:
|
||||
categories.append(category)
|
||||
|
||||
categories.append({"label": category, "value": category})
|
||||
return categories
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user