BUILD119 — ручной счёт + SQL + составы
This commit is contained in:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user