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
696804da
Commit
696804da
authored
Aug 08, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes from pull request comments.
parent
0fe2abbb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
common/lib/xmodule/xmodule/x_module.py
+1
-1
lms/djangoapps/courseware/grades.py
+1
-1
No files found.
common/lib/xmodule/xmodule/x_module.py
View file @
696804da
...
...
@@ -306,7 +306,7 @@ class XModuleDescriptor(Plugin, HTMLSnippet):
module_class
=
XModule
# Attributes for inpsection of the descriptor
stores_state
=
False
# Indicates wether the xmodule state should be
stores_state
=
False
# Indicates w
h
ether the xmodule state should be
# stored in a database (independent of shared state)
has_score
=
False
# This indicates whether the xmodule is a problem-type.
# It should respond to max_score() and grade(). It can be graded or ungraded
...
...
lms/djangoapps/courseware/grades.py
View file @
696804da
...
...
@@ -185,7 +185,7 @@ def get_score(user, problem, student_module_cache):
problem: an XModule
cache: A StudentModuleCache
"""
if
not
problem
.
descriptor
.
stores_state
or
not
problem
.
descriptor
.
has_score
:
if
not
(
problem
.
descriptor
.
stores_state
and
problem
.
descriptor
.
has_score
)
:
# These are not problems, and do not have a score
return
(
None
,
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