fix: cache string

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

View File

@ -71,7 +71,8 @@ class Cache:
for c in self.cached_attributes: for c in self.cached_attributes:
d = c.__dict__ d = c.__dict__
for key in self._time_fields: 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) _json.append(d)