WIP: Refactor Aurora (3.0.0) #29
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@ class JSONEncoder(json.JSONEncoder):
|
||||||
case datetime():
|
case datetime():
|
||||||
return int(o.timestamp())
|
return int(o.timestamp())
|
||||||
case timedelta():
|
case timedelta():
|
||||||
return str(o)
|
from ..utilities.utils import timedelta_to_string
|
||||||
|
return timedelta_to_string(o)
|
||||||
case AuroraBaseModel():
|
case AuroraBaseModel():
|
||||||
return o.dump()
|
return o.dump()
|
||||||
case Type():
|
case Type():
|
||||||
|
|
Loading…
Reference in a new issue