feat: Add default value of False to show_leaderboard_during_contest field in contest schemas.
This commit is contained in:
parent
bd85de5402
commit
e87e0cd700
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user