Don't cap points coming back from CodeResponses -- let them be more than max_points if they want to award extra credit.

This commit is contained in:
David Ormsbee
2012-12-04 15:51:36 -05:00
parent 94a12bddb6
commit cee0781a20

View File

@@ -1309,8 +1309,6 @@ class CodeResponse(LoncapaResponse):
# Sanity check on returned points
if points < 0:
points = 0
elif points > self.maxpoints[self.answer_id]:
points = self.maxpoints[self.answer_id]
# Queuestate is consumed
oldcmap.set(self.answer_id, npoints=points, correctness=correctness,
msg=msg.replace('&nbsp;', '&#160;'), queuestate=None)