We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66a650c commit e2d8229Copy full SHA for e2d8229
submission/views.py
@@ -87,9 +87,9 @@ def get_queryset(self):
87
'status_memory')
88
if not is_admin_or_root(self.request.user):
89
queryset = queryset.filter(contest__isnull=True, problem__visible=True)
90
- if author:
+ if author and author.isdigit():
91
queryset = queryset.filter(author_id=author)
92
- if prob:
+ if prob and prob.isdigit():
93
queryset = queryset.filter(problem_id=prob)
94
if kw:
95
q = Q(author__username__iexact=kw)
0 commit comments