Fix io bug for problem raw
This commit is contained in:
parent
b89c127707
commit
5e963c6494
1 changed files with 6 additions and 0 deletions
|
@ -207,6 +207,12 @@ class ProblemRaw(
|
||||||
context["problem_name"] = self.object.name
|
context["problem_name"] = self.object.name
|
||||||
context["url"] = self.request.build_absolute_uri()
|
context["url"] = self.request.build_absolute_uri()
|
||||||
context["description"] = self.object.description
|
context["description"] = self.object.description
|
||||||
|
if hasattr(self.object, "data_files"):
|
||||||
|
context["fileio_input"] = self.object.data_files.fileio_input
|
||||||
|
context["fileio_output"] = self.object.data_files.fileio_output
|
||||||
|
else:
|
||||||
|
context["fileio_input"] = None
|
||||||
|
context["fileio_output"] = None
|
||||||
return context
|
return context
|
||||||
|
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in a new issue