def grade_whole_submissions(assignment, username): """Grading a whole submission""" return grading.whole_submission(assignment, username, False)
def grade_whole_submissions(assignment, username): """Inserting grade and comment for a whole submission""" grade = request.POST.get('grade') queries.insert_submission_grade(grade, username, assignment) return grading.whole_submission(assignment, username, False)
def grade_whole_sections(assignment, section, username): """grading a whole submission by section""" return grading.whole_submission(assignment, username, True)