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():
|
||||
return int(o.timestamp())
|
||||
case timedelta():
|
||||
return str(o)
|
||||
from ..utilities.utils import timedelta_to_string
|
||||
return timedelta_to_string(o)
|
||||
case AuroraBaseModel():
|
||||
return o.dump()
|
||||
case Type():
|
||||
|
|
Loading…
Reference in a new issue