Parse out the score given into an int.

This commit is contained in:
Diana Huang
2012-12-14 09:59:59 -05:00
committed by Vik Paruchuri
parent 8f4efb0456
commit de7d6f184a

View File

@@ -209,8 +209,8 @@ class @Problem
fd.append('feedback', feedback)
fd.append('submission_id', submission_id)
fd.append('grader_id', grader_id)
if(score)
fd.append('score', score)
if(score && parseInt(score) != NaN)
fd.append('score', parseInt(score))
settings =