fix: cache string

This commit is contained in:
Hazel 2024-04-12 13:51:30 +02:00
parent 2512612ef2
commit 92495f73fd

View File

@ -71,6 +71,7 @@ class Cache:
for c in self.cached_attributes:
d = c.__dict__
for key in self._time_fields:
if not isinstance(d[key], str):
d[key] = d[key].isoformat()
_json.append(d)