Fix bug when there's no data

This commit is contained in:
cuom1999 2023-03-17 22:24:23 -05:00
parent 4792134990
commit 2b0058ca4c

View file

@ -1194,7 +1194,9 @@ def problem_submit(request, problem, submission=None):
"ACE_URL": settings.ACE_URL,
"default_lang": default_lang,
"problem_id": problem.id,
"output_only": problem.data_files.output_only,
"output_only": problem.data_files.output_only
if hasattr(problem, "data_files")
else False,
},
)