From 212029e755ba8cc352eb424c1e37fa9865d65d5d Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Wed, 15 Feb 2023 23:19:55 -0600 Subject: [PATCH] Fix submission page --- judge/views/submission.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/judge/views/submission.py b/judge/views/submission.py index 92afb77..71287b2 100644 --- a/judge/views/submission.py +++ b/judge/views/submission.py @@ -830,7 +830,9 @@ class AllSubmissions(GeneralSubmissions): return result queryset = Submission.objects if self.selected_languages: - queryset = queryset.filter(language__in=self.selected_languages) + queryset = queryset.filter( + language__in=Language.objects.filter(key__in=self.selected_languages) + ) if self.selected_statuses: submission_results = [i for i, _ in Submission.RESULT] if self.selected_statuses[0] in submission_results: