fix: cache string
This commit is contained in:
parent
2512612ef2
commit
92495f73fd
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user