mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 21:33:00 +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
|
# Then save to disk
|
||||||
with open(cache_path, 'w') as f:
|
with open(cache_path, 'w') as f:
|
||||||
json.dump(data, f)
|
json.dump(data, f, cls=DateTimeEncoder)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.error(f"Error saving cache for {key}: {e}")
|
self.logger.error(f"Error saving cache for {key}: {e}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user