Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-submissions
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
edx
edx-submissions
Commits
067d7782
Commit
067d7782
authored
Mar 29, 2017
by
Eric Fischer
Committed by
GitHub
Mar 29, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #54 from edx/efischer/swallow_reset_signal
Allow reset signal to be ignored
parents
8ded4b8c
b0b76517
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
submissions/api.py
+2
-1
No files found.
submissions/api.py
View file @
067d7782
...
@@ -704,7 +704,7 @@ def get_latest_score_for_submission(submission_uuid, read_replica=False):
...
@@ -704,7 +704,7 @@ def get_latest_score_for_submission(submission_uuid, read_replica=False):
return
ScoreSerializer
(
score
)
.
data
return
ScoreSerializer
(
score
)
.
data
def
reset_score
(
student_id
,
course_id
,
item_id
,
clear_state
=
False
):
def
reset_score
(
student_id
,
course_id
,
item_id
,
clear_state
=
False
,
emit_signal
=
True
):
"""
"""
Reset scores for a specific student on a specific problem.
Reset scores for a specific student on a specific problem.
...
@@ -738,6 +738,7 @@ def reset_score(student_id, course_id, item_id, clear_state=False):
...
@@ -738,6 +738,7 @@ def reset_score(student_id, course_id, item_id, clear_state=False):
# Create a "reset" score
# Create a "reset" score
try
:
try
:
score
=
Score
.
create_reset_score
(
student_item
)
score
=
Score
.
create_reset_score
(
student_item
)
if
emit_signal
:
# Send a signal out to any listeners who are waiting for scoring events.
# Send a signal out to any listeners who are waiting for scoring events.
score_reset
.
send
(
score_reset
.
send
(
sender
=
None
,
sender
=
None
,
...
...
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