Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-proctoring
Commits
6fde4488
Commit
6fde4488
authored
Nov 16, 2015
by
Muhammad Shoaib
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed the default parameters from the method's arguments
parent
d9547f21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
edx_proctoring/api.py
+2
-6
No files found.
edx_proctoring/api.py
View file @
6fde4488
...
@@ -99,7 +99,7 @@ def create_exam(course_id, content_id, exam_name, time_limit_mins, due_date=None
...
@@ -99,7 +99,7 @@ def create_exam(course_id, content_id, exam_name, time_limit_mins, due_date=None
return
proctored_exam
.
id
return
proctored_exam
.
id
def
create_exam_review_policy
(
exam_id
=
None
,
set_by_user_id
=
None
,
review_policy
=
None
):
def
create_exam_review_policy
(
exam_id
,
set_by_user_id
,
review_policy
):
"""
"""
Creates a new exam_review_policy entity, if the review_policy
Creates a new exam_review_policy entity, if the review_policy
for exam_id does not already exist. If it exists, then raise exception.
for exam_id does not already exist. If it exists, then raise exception.
...
@@ -130,11 +130,9 @@ def create_exam_review_policy(exam_id=None, set_by_user_id=None, review_policy=N
...
@@ -130,11 +130,9 @@ def create_exam_review_policy(exam_id=None, set_by_user_id=None, review_policy=N
return
exam_review_policy
.
id
return
exam_review_policy
.
id
def
update_review_policy
(
exam_id
=
None
,
set_by_user_id
=
None
,
review_policy
=
None
):
def
update_review_policy
(
exam_id
,
set_by_user_id
,
review_policy
):
"""
"""
Given a exam id, update the existing record, otherwise raise exception if not found.
Given a exam id, update the existing record, otherwise raise exception if not found.
If an argument is not passed in, then do not change it's current value.
Returns: review_policy_id
Returns: review_policy_id
"""
"""
...
@@ -151,9 +149,7 @@ def update_review_policy(exam_id=None, set_by_user_id=None, review_policy=None):
...
@@ -151,9 +149,7 @@ def update_review_policy(exam_id=None, set_by_user_id=None, review_policy=None):
raise
ProctoredExamReviewPolicyNotFoundException
raise
ProctoredExamReviewPolicyNotFoundException
exam_review_policy
.
set_by_user_id
=
set_by_user_id
exam_review_policy
.
set_by_user_id
=
set_by_user_id
exam_review_policy
.
proctored_exam_id
=
exam_id
exam_review_policy
.
review_policy
=
review_policy
exam_review_policy
.
review_policy
=
review_policy
exam_review_policy
.
save
()
exam_review_policy
.
save
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment