update for spectra changes (#1363)

This commit is contained in:
NotSoToothless
2026-06-29 11:05:51 -07:00
committed by GitHub
parent 010e356dc8
commit 0f8f22df29
3 changed files with 47 additions and 15 deletions
+2 -1
View File
@@ -41,6 +41,7 @@ from data_parser import (
apply_vehicle_name_filters,
normalize_name,
)
from spectra_replay_normalize import normalize_spectra_replay
load_dotenv()
@@ -1251,7 +1252,7 @@ def transform_to_local_format(api_data: Dict[str, Any]) -> Optional[Dict[str, An
logging.error("Invalid API data structure")
return None
replay = api_data["completed"][0]
replay = normalize_spectra_replay(api_data["completed"][0])
winner_winged = str(replay.get("winner") or "")
loser_winged = str(replay.get("loser") or "")