BUILD119 — ручной счёт + SQL + составы

This commit is contained in:
2026-08-26 13:54:47 +03:00
parent c5b25c23e2
commit fb422d5bf8
10 changed files with 544 additions and 16 deletions

View File

@@ -163,6 +163,11 @@ DEFAULT_PUBLIC_SETTINGS: dict[str, Any] = {
"strength_state_labels": DEFAULT_STRENGTH_STATE_LABELS,
"period_status_labels": DEFAULT_PERIOD_STATUS_LABELS,
"scoreboard_team_states": DEFAULT_SCOREBOARD_TEAM_STATES,
# Optional Mapping/SQL keys used as the external score baseline. When blank,
# the imported game score is used. Example: score_sql.home / score_sql.away.
"score_external_home_key": "",
"score_external_away_key": "",
}
DEFAULT_SECRET_SETTINGS: dict[str, str] = {
@@ -373,6 +378,9 @@ class HockeySettingsStore:
raw[key] = str(
raw.get(key) or DEFAULT_PUBLIC_SETTINGS[key]
).strip()
for key in ("score_external_home_key", "score_external_away_key"):
raw[key] = str(raw.get(key) or "").strip()[:160]
return raw
def credentials(self) -> tuple[str, str]: