fix: cache string

This commit is contained in:
Hazel 2024-04-12 13:51:30 +02:00
parent 2512612ef2
commit 92495f73fd
1 changed files with 2 additions and 1 deletions

View File

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