Fix submission page

This commit is contained in:
cuom1999 2023-02-15 23:19:55 -06:00
parent 56651e0e0c
commit 212029e755

View file

@ -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: