Skip to content

Commit

Permalink
Add strip to allow ', ' as a separator
Browse files Browse the repository at this point in the history
  • Loading branch information
thremilien committed Aug 23, 2024
1 parent fcb729e commit 4a6edd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inginious/common/tasks_problems.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4a6edd6

Please sign in to comment.