mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
Fix NBA leaderboard team ID field for logo fetching (#116)
* Fix NBA leaderboard team ID field for logo fetching - Add missing 'id' field to NBA team standings data structure - Enables proper logo fetching from assets/sports/nba_logos/ - Fixes 'id' KeyError when creating NBA leaderboard images - Includes diagnostic and test scripts for verification * Add NBA logo downloader script and documentation - download_nba_logos.py: Script to download all 30 NBA team logos from ESPN API - README_NBA_LOGOS.md: Comprehensive documentation for the logo downloader - Supports force re-download and quiet modes - Downloads to assets/sports/nba_logos/ for leaderboard integration * replace NBA Logos * return NBA logo
This commit is contained in:
@@ -373,6 +373,7 @@ class LeaderboardManager:
|
||||
if team_record:
|
||||
standings.append({
|
||||
'name': team_name,
|
||||
'id': team.get('id'), # Add team ID for logo fetching
|
||||
'abbreviation': team_abbr,
|
||||
'wins': team_record.get('wins', 0),
|
||||
'losses': team_record.get('losses', 0),
|
||||
|
||||
Reference in New Issue
Block a user