fix(aurora): convert float timestamps to integers
This commit is contained in:
parent
2da76eb51a
commit
e8ca0aeb1c
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class Moderation(BaseModel):
|
|||
class JSONEncoder(json.JSONEncoder):
|
||||
def default(self, o):
|
||||
if isinstance(o, datetime):
|
||||
return o.timestamp()
|
||||
return int(o.timestamp())
|
||||
if isinstance(o, timedelta):
|
||||
return str(o)
|
||||
return super().default(o)
|
||||
|
|
Loading…
Reference in a new issue