Commit 5f44b2de by David Ormsbee

minor comment on partial credit

parent 30f3923c
...@@ -111,10 +111,7 @@ class CorrectMap(object): ...@@ -111,10 +111,7 @@ class CorrectMap(object):
return None return None
def get_npoints(self, answer_id): def get_npoints(self, answer_id):
""" Return the number of points for an answer: """Return the number of points for an answer, used for partial credit."""
If the answer is correct, return the assigned
number of points (default: 1 point)
Otherwise, return 0 points """
npoints = self.get_property(answer_id, 'npoints') npoints = self.get_property(answer_id, 'npoints')
if npoints is not None: if npoints is not None:
return npoints return npoints
......
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