Fixed bug where grade_decision would not be properly set in 2 out of 4 cases.
authorLennard de Rijk <ljvderijk@gmail.com>
Mon, 13 Jul 2009 10:18:14 +0200
changeset 2626 17dd9ada27cb
parent 2625 13a80adefcc6
child 2627 06d26fded0db
Fixed bug where grade_decision would not be properly set in 2 out of 4 cases.
app/soc/logic/models/grading_record.py
--- a/app/soc/logic/models/grading_record.py	Mon Jul 13 11:43:40 2009 +0200
+++ b/app/soc/logic/models/grading_record.py	Mon Jul 13 10:18:14 2009 +0200
@@ -134,7 +134,8 @@
       else:
         # no ProjectSurveyRecord on file while there is a survey to be taken
         grade_decision = 'fail'
-        fields['grade_decision'] = grade_decision
+
+      fields['grade_decision'] = grade_decision
 
     # return the fields that should be set for a GradingRecord
     return fields