From ad73e4cdf3e97e0b4ab2096d21f794cb60bf819d Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Sat, 13 Jan 2024 18:35:48 -0600 Subject: [PATCH] Fix related_problems --- judge/views/problem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/views/problem.py b/judge/views/problem.py index b69c3e3..41000a4 100644 --- a/judge/views/problem.py +++ b/judge/views/problem.py @@ -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 )