Fix bug when there's no data
This commit is contained in:
parent
4792134990
commit
2b0058ca4c
1 changed files with 3 additions and 1 deletions
|
@ -1194,7 +1194,9 @@ def problem_submit(request, problem, submission=None):
|
||||||
"ACE_URL": settings.ACE_URL,
|
"ACE_URL": settings.ACE_URL,
|
||||||
"default_lang": default_lang,
|
"default_lang": default_lang,
|
||||||
"problem_id": problem.id,
|
"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,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue