WIP: Refactor Aurora (3.0.0) #29

Draft
cswimr wants to merge 347 commits from aurora-pydantic into main
Showing only changes of commit e8ca0aeb1c - Show all commits

View file

@ -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)