From ac42ca9c4a741aaf38bcea1e982da151ba5d81ea Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 22 Oct 2018 13:29:54 -0500 Subject: [PATCH] Pass actual user source code (not a code object) to grading code in user_code --- course/page/code_runpy_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/page/code_runpy_backend.py b/course/page/code_runpy_backend.py index a06b45fc..ded583c4 100644 --- a/course/page/code_runpy_backend.py +++ b/course/page/code_runpy_backend.py @@ -224,7 +224,7 @@ def run_code(result, run_req): feedback = Feedback() maint_ctx = { "feedback": feedback, - "user_code": user_code, + "user_code": run_req.user_code, "data_files": data_files, "output_html": output_html, "GradingComplete": GradingComplete, -- GitLab