This commit is contained in:
NotSoToothless
2026-06-17 00:32:30 -07:00
committed by GitHub
parent d07afdee21
commit 7bd8a1b72c
10 changed files with 808 additions and 32 deletions
+20
View File
@@ -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