mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
Fix datetime serialization in cache manager. Add custom JSON encoder to handle datetime objects.
This commit is contained in:
@@ -107,7 +107,7 @@ class CacheManager:
|
||||
|
||||
# Then save to disk
|
||||
with open(cache_path, 'w') as f:
|
||||
json.dump(data, f)
|
||||
json.dump(data, f, cls=DateTimeEncoder)
|
||||
except Exception as e:
|
||||
self.logger.error(f"Error saving cache for {key}: {e}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user