Commit 2ba3ee30 by Vik Paruchuri

Add new success key to results

parent 69e87981
......@@ -77,7 +77,7 @@ def grade(grader_path,grader_config,submission,sandbox=None):
grader_path=util_functions.create_model_path(grader_path)
log.debug("Grader path: {0}\n Submission: {1}".format(grader_path,submission))
results = {'errors': [],'tests': [],'correct': False,'score': 0, 'feedback' : ""}
results = {'errors': [],'tests': [],'correct': False,'score': 0, 'feedback' : "", 'success' : False}
has_error=False
......@@ -115,6 +115,8 @@ def grade(grader_path,grader_config,submission,sandbox=None):
else:
results['correct']=False
results['success']=True
#Generate short form output--number of problem areas identified in feedback
problem_areas=0
for tag in feedback:
......
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