From e87e0cd7000656d6a9c73450175b207b361ac648 Mon Sep 17 00:00:00 2001 From: "n.tolstov" Date: Mon, 1 Dec 2025 00:00:20 +0300 Subject: [PATCH] feat: Add default value of False to `show_leaderboard_during_contest` field in contest schemas. --- backend/app/schemas/contest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/schemas/contest.py b/backend/app/schemas/contest.py index 39a8456..e105fe0 100644 --- a/backend/app/schemas/contest.py +++ b/backend/app/schemas/contest.py @@ -27,7 +27,7 @@ class ContestResponse(BaseModel): start_time: datetime end_time: datetime is_active: bool - show_leaderboard_during_contest: bool + show_leaderboard_during_contest: bool = False created_by: int | None created_at: datetime is_running: bool @@ -46,7 +46,7 @@ class ContestListResponse(BaseModel): start_time: datetime end_time: datetime is_active: bool - show_leaderboard_during_contest: bool + show_leaderboard_during_contest: bool = False is_running: bool has_ended: bool problems_count: int = 0