Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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-platform
Commits
147ca0bc
Commit
147ca0bc
authored
Aug 02, 2017
by
Tyler Hallada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send signal requires sender argument
parent
a6b94a24
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
lms/djangoapps/grades/services.py
+2
-0
lms/djangoapps/grades/tests/test_services.py
+2
-0
No files found.
lms/djangoapps/grades/services.py
View file @
147ca0bc
...
...
@@ -96,6 +96,7 @@ class GradesService(object):
# Signal will trigger subsection recalculation which will call PersistentSubsectionGrade.update_or_create_grade
# which will use the above override to update the grade before writing to the table.
SUBSECTION_OVERRIDE_CHANGED
.
send
(
sender
=
None
,
user_id
=
user_id
,
course_id
=
unicode
(
course_key
),
usage_id
=
unicode
(
usage_key
),
...
...
@@ -131,6 +132,7 @@ class GradesService(object):
# which will no longer use the above deleted override, and instead return the grade to the original score from
# the actual problem responses before writing to the table.
SUBSECTION_OVERRIDE_CHANGED
.
send
(
sender
=
None
,
user_id
=
user_id
,
course_id
=
unicode
(
course_key
),
usage_id
=
unicode
(
usage_key
),
...
...
lms/djangoapps/grades/tests/test_services.py
View file @
147ca0bc
...
...
@@ -179,6 +179,7 @@ class GradesServiceTests(ModuleStoreTestCase):
self
.
assertEqual
(
self
.
mock_signal
.
call_args
,
call
(
sender
=
None
,
user_id
=
self
.
user
.
id
,
course_id
=
unicode
(
self
.
course
.
id
),
usage_id
=
unicode
(
self
.
subsection
.
location
),
...
...
@@ -205,6 +206,7 @@ class GradesServiceTests(ModuleStoreTestCase):
self
.
assertEqual
(
self
.
mock_signal
.
call_args
,
call
(
sender
=
None
,
user_id
=
self
.
user
.
id
,
course_id
=
unicode
(
self
.
course
.
id
),
usage_id
=
unicode
(
self
.
subsection
.
location
),
...
...
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