This commit is contained in:
Trey t
2026-01-19 22:52:42 -06:00
parent a8b0491571
commit 6cddf601e3
15 changed files with 554 additions and 296 deletions

View File

@@ -323,7 +323,7 @@ class NWSLScraper(BaseScraper):
teams: list[Team] = []
seen: set[str] = set()
for abbrev, (team_id, full_name, city) in TEAM_MAPPINGS.get("nwsl", {}).items():
for abbrev, (team_id, full_name, city, stadium_id) in TEAM_MAPPINGS.get("nwsl", {}).items():
if team_id in seen:
continue
seen.add(team_id)
@@ -331,14 +331,6 @@ class NWSLScraper(BaseScraper):
# Parse team name
team_name = full_name
# Get stadium ID
stadium_id = None
nwsl_stadiums = STADIUM_MAPPINGS.get("nwsl", {})
for sid, sinfo in nwsl_stadiums.items():
if city.lower() in sinfo.city.lower() or sinfo.city.lower() in city.lower():
stadium_id = sid
break
team = Team(
id=team_id,
sport="nwsl",