From faadb0b49d5a5baa5bfa8f93125e9139822d0819 Mon Sep 17 00:00:00 2001 From: Le Bao Hiep Date: Tue, 5 Sep 2023 22:51:27 +0700 Subject: [PATCH] Fix `hidden_scoreboard` field in `APIContestDetail` --- judge/views/api/api_v2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/judge/views/api/api_v2.py b/judge/views/api/api_v2.py index ec6d0b424..771647f99 100644 --- a/judge/views/api/api_v2.py +++ b/judge/views/api/api_v2.py @@ -285,7 +285,8 @@ def get_object_data(self, contest): 'rating_floor': contest.rating_floor, 'rating_ceiling': contest.rating_ceiling, 'hidden_scoreboard': contest.scoreboard_visibility in (contest.SCOREBOARD_AFTER_CONTEST, - contest.SCOREBOARD_AFTER_PARTICIPATION), + contest.SCOREBOARD_AFTER_PARTICIPATION, + contest.SCOREBOARD_HIDDEN), 'scoreboard_visibility': contest.scoreboard_visibility, 'is_organization_private': contest.is_organization_private, 'organizations': list(