Fix related_problems

This commit is contained in:
cuom1999 2024-01-13 18:35:48 -06:00
parent 2cf386e8b5
commit ad73e4cdf3

View file

@ -351,7 +351,7 @@ class ProblemDetail(
else:
context["fileio_input"] = None
context["fileio_output"] = None
if not self.in_contest:
if not self.in_contest and settings.ML_OUTPUT_PATH:
context["related_problems"] = get_related_problems(
self.profile, self.object
)