update for spectra changes (#1363)
This commit is contained in:
+2
-1
@@ -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 "")
|
||||
|
||||
Reference in New Issue
Block a user