Fix io bug for problem raw

This commit is contained in:
cuom1999 2022-06-02 11:23:16 -05:00
parent b89c127707
commit 5e963c6494

View file

@ -207,6 +207,12 @@ class ProblemRaw(
context["problem_name"] = self.object.name
context["url"] = self.request.build_absolute_uri()
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
def get(self, request, *args, **kwargs):