Commit 7eaad640 authored by Alan Marchiori's avatar Alan Marchiori
Browse files

split check and grade to fix bugs.

parent 24cdbe4e
......@@ -161,7 +161,7 @@ def grade(lab, part, clone, dograde, regrade, user, skip, push, **kwargs):
if isinstance(part, int) and part != info['index']:
continue
if not dograde and 'check' in info:
if 'check' in info:
if (not regrade) and 'check' in hist and partstr in hist['check']:
echo("Skip part {:3}, already checked (set regrade to re-run).".format(info['index']))
echo("\tpass? {}".format(
......@@ -205,6 +205,11 @@ def grade(lab, part, clone, dograde, regrade, user, skip, push, **kwargs):
'who': who,
'at': utils.timestamp().isoformat()}
for partstr, info in rubric['parts'].items():
# part can be zero.
if isinstance(part, int) and part != info['index']:
continue
if dograde and 'grade' in info:
if (not regrade) and 'grade' in hist and partstr in hist['grade'] and 'grade' in hist['grade'][partstr] and 'comment' in hist['grade'][partstr]:
......
Supports Markdown
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