From 9132ce7fb490ecbacfe0ef535692d2fcb47b917b Mon Sep 17 00:00:00 2001 From: Shannon Ellis Date: Tue, 20 Feb 2024 10:18:36 -0800 Subject: [PATCH] Update 04_project_grading.ipynb Update score parsing/handling to be compatible across python versions --- nbs/api/04_project_grading.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbs/api/04_project_grading.ipynb b/nbs/api/04_project_grading.ipynb index 0749371..107739a 100644 --- a/nbs/api/04_project_grading.ipynb +++ b/nbs/api/04_project_grading.ipynb @@ -106,7 +106,7 @@ " score = 0\n", " for line in body.split(\"\\n\"):\n", " if \"Score =\" in line and \"[comment]\" not in line:\n", - " score = literal_eval(line.split(\"=\")[1])\n", + " score = literal_eval(line.split(\"= \")[1])\n", " return score\n", " raise ValueError(f\"Score Parse Error. please check the score format on github. \\n\"\n", " f\"Issue URL: {issue.url}\")\n",