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: