Skip to content

Commit

Permalink
Fixed an issue where grading.grade-dir was missing an argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
eriq-augustine committed Dec 20, 2023
1 parent 8354bd2 commit 76f737f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion autograder/cmd/gradeassignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def run(args):
grading_dir = autograder.submission.prep_grading_dir(assignment_config_path,
submission_path, debug = args.debug)

result = autograder.submission.run_submission(assignment_config_path, grading_dir)
result = autograder.submission.run_submission(grading_dir,
assignment_config_path = assignment_config_path)
if (result is None):
return 2

Expand Down
4 changes: 2 additions & 2 deletions autograder/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def run_test_submission(assignment_config_path, submission_config_path, debug =
grading_dir = prep_grading_dir(assignment_config_path,
os.path.dirname(submission_config_path), debug = debug)

actual_result = run_submission(assignment_config_path, grading_dir)
actual_result = run_submission(grading_dir, assignment_config_path = assignment_config_path)
if (actual_result is None):
return False

Expand All @@ -175,7 +175,7 @@ def compare_test_submission(test_config_path, actual_result, print_result = True

return match

def run_submission(assignment_config_path, grading_dir, grader_path = None):
def run_submission(grading_dir, assignment_config_path = None, grader_path = None):
if (grader_path is None):
grader_path = os.path.join(grading_dir, WORK_DIRNAME, GRADER_FILENAME)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def get_description():
name = 'autograder-py',
url = 'https://github.com/eriq-augustine/autograder-py',

version = '0.3.1',
version = '0.3.2',
keywords = 'grading',

description = "The Python interface for the autograding server.",
Expand Down

0 comments on commit 76f737f

Please sign in to comment.