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
80cbb59f
Commit
80cbb59f
authored
Oct 06, 2016
by
Eric Fischer
Committed by
GitHub
Oct 06, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13655 from edx/hotfix-2016-10-06
Break early if max_score is not defined
parents
6043fcb1
7be2093e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
lms/djangoapps/instructor/enrollment.py
+5
-1
No files found.
lms/djangoapps/instructor/enrollment.py
View file @
80cbb59f
...
...
@@ -317,7 +317,11 @@ def _fire_score_changed_for_block(course_id, student, block, module_state_key):
field_data_cache
=
cache
,
course_key
=
course_id
)
points_earned
,
points_possible
=
weighted_score
(
0
,
module
.
max_score
(),
getattr
(
module
,
'weight'
,
None
))
max_score
=
module
.
max_score
()
if
max_score
is
None
:
return
else
:
points_earned
,
points_possible
=
weighted_score
(
0
,
max_score
,
getattr
(
module
,
'weight'
,
None
))
else
:
points_earned
,
points_possible
=
0
,
0
SCORE_CHANGED
.
send
(
...
...
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