From 452619c668e39bd5ffcdba5f2dbbbc5d9eaa4bf8 Mon Sep 17 00:00:00 2001 From: Shreya Shah Date: Tue, 30 Oct 2018 11:26:01 +0530 Subject: [PATCH] fix(report): Return if not list (#15849) --- .../student_monthly_attendance_sheet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/education/report/student_monthly_attendance_sheet/student_monthly_attendance_sheet.py b/erpnext/education/report/student_monthly_attendance_sheet/student_monthly_attendance_sheet.py index 0c7baa848f..3f1d5b371b 100644 --- a/erpnext/education/report/student_monthly_attendance_sheet/student_monthly_attendance_sheet.py +++ b/erpnext/education/report/student_monthly_attendance_sheet/student_monthly_attendance_sheet.py @@ -73,6 +73,7 @@ def get_attendance_list(from_date, to_date, student_group, students_list): return att_map def get_students_with_leave_application(from_date, to_date, students_list): + if not students_list: return leave_applications = frappe.db.sql(""" select student, from_date, to_date from `tabStudent Leave Application`