@frappe.whitelist()
def check_attendance_records_exist(course_schedule=None, student_batch=None, date=None):
 if course_schedule:
  return frappe.get_list(u'Student Attendance', filters={u'course_schedule': course_schedule})
 else:
  return frappe.get_list(u'Student Attendance', filters={u'student_batch': student_batch, u'date': date})

@ frappe . whitelist ( ) def check_attendance_records_exist ( course_schedule = None , student_batch = None , date = None ) : if course_schedule : return frappe . get_list ( u'Student Attendance' , filters = { u'course_schedule' : course_schedule } ) else : return frappe . get_list ( u'Student Attendance' , filters = { u'student_batch' : student_batch , u'date' : date } )
check if attendance records are made against the specified course schedule or student batch for given date .