mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 05:13:01 +00:00
feat: implement caching for ESPN API responses to reduce API calls
This commit is contained in:
@@ -251,7 +251,7 @@ class BaseNBAManager:
|
||||
return None
|
||||
|
||||
def _fetch_data(self, date_str: str = None) -> Optional[Dict]:
|
||||
"""Fetch data from ESPN API."""
|
||||
"""Fetch data from ESPN API with caching."""
|
||||
if self.test_mode:
|
||||
return self._load_test_data()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user