def make_attendance_records(student, student_name, status, course_schedule=None, student_batch=None, date=None):
 student_attendance = frappe.new_doc(u'Student Attendance')
 student_attendance.student = student
 student_attendance.student_name = student_name
 student_attendance.course_schedule = course_schedule
 student_attendance.student_batch = student_batch
 student_attendance.date = date
 student_attendance.status = status
 student_attendance.submit()

def make_attendance_records ( student , student_name , status , course_schedule = None , student_batch = None , date = None ) : student_attendance = frappe . new_doc ( u'Student Attendance' ) student_attendance . student = student student_attendance . student_name = student_name student_attendance . course_schedule = course_schedule student_attendance . student_batch = student_batch student_attendance . date = date student_attendance . status = status student_attendance . submit ( )
creates attendance record .