Skip to content

Commit

Permalink
Fix ContestAdmin make_hidden to actually hide contests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjaclasher authored and kiritofeng committed Dec 6, 2024
1 parent f9086f0 commit 5374466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge/admin/contest.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def make_visible(self, request, queryset):
def make_hidden(self, request, queryset):
if not request.user.has_perm('judge.change_contest_visibility'):
queryset = queryset.filter(Q(is_private=True) | Q(is_organization_private=True))
count = queryset.update(is_visible=True)
count = queryset.update(is_visible=False)
self.message_user(request, ngettext('%d contest successfully marked as hidden.',
'%d contests successfully marked as hidden.',
count) % count)
Expand Down

0 comments on commit 5374466

Please sign in to comment.