feat: Add default value of False to show_leaderboard_during_contest field in contest schemas.

This commit is contained in:
n.tolstov 2025-12-01 00:00:20 +03:00
parent bd85de5402
commit e87e0cd700

View File

@ -27,7 +27,7 @@ class ContestResponse(BaseModel):
start_time: datetime start_time: datetime
end_time: datetime end_time: datetime
is_active: bool is_active: bool
show_leaderboard_during_contest: bool show_leaderboard_during_contest: bool = False
created_by: int | None created_by: int | None
created_at: datetime created_at: datetime
is_running: bool is_running: bool
@ -46,7 +46,7 @@ class ContestListResponse(BaseModel):
start_time: datetime start_time: datetime
end_time: datetime end_time: datetime
is_active: bool is_active: bool
show_leaderboard_during_contest: bool show_leaderboard_during_contest: bool = False
is_running: bool is_running: bool
has_ended: bool has_ended: bool
problems_count: int = 0 problems_count: int = 0