mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-12 05:42:59 +00:00
updates to caching
This commit is contained in:
@@ -162,7 +162,7 @@ class StockNewsManager:
|
||||
return
|
||||
|
||||
# Get cached data
|
||||
cached_data = self.cache_manager.get_cached_data('stock_news')
|
||||
cached_data = self.cache_manager.get('stock_news')
|
||||
|
||||
# Update each symbol
|
||||
new_data = {}
|
||||
@@ -186,6 +186,8 @@ class StockNewsManager:
|
||||
success = True
|
||||
|
||||
if success:
|
||||
# Cache the new data
|
||||
self.cache_manager.update_cache('stock_news', new_data)
|
||||
# Only update the displayed data when we have new data
|
||||
self.news_data = new_data
|
||||
self.last_update = current_time
|
||||
|
||||
Reference in New Issue
Block a user