Commit 6cac95c1 by gradyward

Fixed a small bug that reported a non-success when successful.

parent 368b9d78
......@@ -69,7 +69,7 @@ def grade(grader_data, submission):
results['errors'].append(error_message)
# We have gotten through without an error, so we have been successful
if len(results['errors']) < 0:
if len(results['errors']) == 0:
results['success'] = True
# If we get here, that means there was 1+ error above. Set success to false and return
else:
......
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