-am (#1329)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
"""TSS win/loss standings — STUB.
|
||||
|
||||
SREBOT tracks squadron W/L globally. TSS needs the same idea but **scoped per
|
||||
tournament** (a team's record only means something inside its bracket), so the real
|
||||
implementation is deferred. Until then ``get_tss_standings`` returns ``None`` for
|
||||
every team and the scoreboard renders a neutral placeholder in the W/L slot.
|
||||
|
||||
TODO(tss-wl): persist per-(tournament_id, team_id) wins/losses and resolve here.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, Optional
|
||||
|
||||
|
||||
def get_tss_standings(team_id: Optional[str], tournament_id: Optional[Any] = None) -> Optional[dict[str, int]]:
|
||||
"""Return ``{"wins": int, "losses": int}`` for a team, or ``None`` if untracked.
|
||||
|
||||
Stub: always ``None`` until per-tournament W/L tracking lands.
|
||||
"""
|
||||
return None
|
||||
Reference in New Issue
Block a user