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:
@@ -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(' ', ' '), queuestate=None)
|
||||
|
||||
Reference in New Issue
Block a user