mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 07:20:26 +00:00
fix(report): Return if not list (#15849)
This commit is contained in:
@@ -73,6 +73,7 @@ def get_attendance_list(from_date, to_date, student_group, students_list):
|
|||||||
return att_map
|
return att_map
|
||||||
|
|
||||||
def get_students_with_leave_application(from_date, to_date, students_list):
|
def get_students_with_leave_application(from_date, to_date, students_list):
|
||||||
|
if not students_list: return
|
||||||
leave_applications = frappe.db.sql("""
|
leave_applications = frappe.db.sql("""
|
||||||
select student, from_date, to_date
|
select student, from_date, to_date
|
||||||
from `tabStudent Leave Application`
|
from `tabStudent Leave Application`
|
||||||
|
|||||||
Reference in New Issue
Block a user