Fix submission page
This commit is contained in:
parent
56651e0e0c
commit
212029e755
1 changed files with 3 additions and 1 deletions
|
@ -830,7 +830,9 @@ class AllSubmissions(GeneralSubmissions):
|
||||||
return result
|
return result
|
||||||
queryset = Submission.objects
|
queryset = Submission.objects
|
||||||
if self.selected_languages:
|
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:
|
if self.selected_statuses:
|
||||||
submission_results = [i for i, _ in Submission.RESULT]
|
submission_results = [i for i, _ in Submission.RESULT]
|
||||||
if self.selected_statuses[0] in submission_results:
|
if self.selected_statuses[0] in submission_results:
|
||||||
|
|
Loading…
Reference in a new issue