Commit 696804da by Bridger Maxwell

Changes from pull request comments.

parent 0fe2abbb
......@@ -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 whether 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
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment