Commit 614e8571 by Muhammad Shoaib

fixed the bug

- added the default value to the timed_exam_only parameter in the api methods
parent a081a0d1
......@@ -199,7 +199,7 @@ def add_allowance_for_user(exam_id, user_info, key, value):
ProctoredExamStudentAllowance.add_allowance_for_user(exam_id, user_info, key, value)
def get_allowances_for_course(course_id, timed_exams_only):
def get_allowances_for_course(course_id, timed_exams_only=False):
"""
Get all the allowances for the course.
"""
......@@ -805,7 +805,7 @@ def remove_exam_attempt(attempt_id):
)
def get_all_exams_for_course(course_id, timed_exams_only, active_only=False):
def get_all_exams_for_course(course_id, timed_exams_only=False, active_only=False):
"""
This method will return all exams for a course. This will return a list
of dictionaries, whose schema is the same as what is returned in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment