fix: certified participants page mobile layout
This commit is contained in:
@@ -359,3 +359,14 @@ def get_certified_participants(search_query=""):
|
||||
details["courses"] = courses
|
||||
participant_details.append(details)
|
||||
return participant_details
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_certificates(member):
|
||||
"""Get certificates for a member."""
|
||||
return frappe.get_all(
|
||||
"LMS Certificate",
|
||||
filters={"member": member},
|
||||
fields=["name", "course", "course_title", "issue_date", "template"],
|
||||
order_by="creation desc",
|
||||
)
|
||||
|
||||
@@ -1520,10 +1520,12 @@ def get_question_details(question):
|
||||
@frappe.whitelist(allow_guest=True)
|
||||
def get_batch_courses(batch):
|
||||
courses = []
|
||||
course_list = frappe.get_all("Batch Course", {"parent": batch}, pluck="course")
|
||||
course_list = frappe.get_all("Batch Course", {"parent": batch}, ["name", "course"])
|
||||
|
||||
for course in course_list:
|
||||
courses.append(get_course_details(course))
|
||||
details = get_course_details(course.course)
|
||||
details.batch_course = course.name
|
||||
courses.append(details)
|
||||
|
||||
return courses
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ def get_meta(app_path):
|
||||
as_dict=True,
|
||||
)
|
||||
return {
|
||||
"title": job_opening.title,
|
||||
"title": job_opening.job_title,
|
||||
"image": job_opening.company_logo,
|
||||
"description": job_opening.company_name,
|
||||
"keywords": "Job Openings, Jobs, Vacancies",
|
||||
|
||||
Reference in New Issue
Block a user