fix: certified participants query
This commit is contained in:
@@ -334,10 +334,11 @@ def get_certified_participants():
|
|||||||
LMSCertificate = DocType("LMS Certificate")
|
LMSCertificate = DocType("LMS Certificate")
|
||||||
participants = (
|
participants = (
|
||||||
frappe.qb.from_(LMSCertificate)
|
frappe.qb.from_(LMSCertificate)
|
||||||
.select("DISTINCT member")
|
.select(LMSCertificate.member)
|
||||||
|
.distinct()
|
||||||
.where(LMSCertificate.published == 1)
|
.where(LMSCertificate.published == 1)
|
||||||
.order_by("creation desc")
|
.orderby(LMSCertificate.creation, order=frappe.qb.desc)
|
||||||
.run()
|
.run(as_dict=1)
|
||||||
)
|
)
|
||||||
|
|
||||||
participant_details = []
|
participant_details = []
|
||||||
|
|||||||
Reference in New Issue
Block a user