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
977563bf
Commit
977563bf
authored
Nov 15, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweeks
parent
089e1d69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
edx_proctoring/api.py
+2
-4
No files found.
edx_proctoring/api.py
View file @
977563bf
...
@@ -213,8 +213,7 @@ def add_allowance_for_user(exam_id, user_info, key, value):
...
@@ -213,8 +213,7 @@ def add_allowance_for_user(exam_id, user_info, key, value):
if
student_allowance
is
not
None
:
if
student_allowance
is
not
None
:
# emit an event for 'allowance.created|updated'
# emit an event for 'allowance.created|updated'
data
=
{
data
=
{
'allowance_user'
:
student_allowance
.
user
,
'allowance_user_id'
:
student_allowance
.
user
.
id
,
'allowance_proctored_exam'
:
student_allowance
.
proctored_exam
,
'allowance_key'
:
student_allowance
.
key
,
'allowance_key'
:
student_allowance
.
key
,
'allowance_value'
:
student_allowance
.
value
'allowance_value'
:
student_allowance
.
value
}
}
...
@@ -250,8 +249,7 @@ def remove_allowance_for_user(exam_id, user_id, key):
...
@@ -250,8 +249,7 @@ def remove_allowance_for_user(exam_id, user_id, key):
# emit an event for 'allowance.deleted'
# emit an event for 'allowance.deleted'
data
=
{
data
=
{
'allowance_user'
:
student_allowance
.
user
,
'allowance_user_id'
:
student_allowance
.
user
.
id
,
'allowance_proctored_exam'
:
student_allowance
.
proctored_exam
,
'allowance_key'
:
student_allowance
.
key
,
'allowance_key'
:
student_allowance
.
key
,
'allowance_value'
:
student_allowance
.
value
'allowance_value'
:
student_allowance
.
value
}
}
...
...
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