From 4a6edd6b7833a2fa0bdbbf89cbd47921619388f5 Mon Sep 17 00:00:00 2001 From: thremilien Date: Fri, 23 Aug 2024 14:05:31 +0000 Subject: [PATCH] Add strip to allow ', ' as a separator --- inginious/common/tasks_problems.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inginious/common/tasks_problems.py b/inginious/common/tasks_problems.py index ca0ae88a8..77bb0360d 100644 --- a/inginious/common/tasks_problems.py +++ b/inginious/common/tasks_problems.py @@ -236,7 +236,7 @@ def parse_problem(self, problem_content): if problem_content["allowed_exts"] == "": del problem_content["allowed_exts"] else: - problem_content["allowed_exts"] = problem_content["allowed_exts"].split(',') + problem_content["allowed_exts"] = [extension.strip() for extension in problem_content["allowed_exts"].split(',')] if "max_size" in problem_content: try: