Fix io display bug
This commit is contained in:
parent
8ba39a1f97
commit
b89c127707
3 changed files with 10 additions and 4 deletions
|
@ -305,6 +305,12 @@ class ProblemDetail(ProblemMixin, SolvedProblemMixin, CommentedDetailView):
|
|||
)
|
||||
context["meta_description"] = self.object.summary or metadata[0]
|
||||
context["og_image"] = self.object.og_image or metadata[1]
|
||||
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue