feat: clock + place games
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
from datetime import datetime
|
||||
|
||||
from ninja import Schema
|
||||
|
||||
|
||||
class ClockStateOut(Schema):
|
||||
server_time: datetime
|
||||
end_time: datetime
|
||||
initial_duration: int
|
||||
press_bonus_seconds: int
|
||||
next_press_at: datetime | None
|
||||
cooldown_seconds: float | None
|
||||
|
||||
|
||||
class PlayerStatsOut(Schema):
|
||||
points: float
|
||||
rank: int
|
||||
total_players: int
|
||||
points_above: float | None
|
||||
points_below: float | None
|
||||
Reference in New Issue
Block a user