WIP: Refactor Aurora (3.0.0) #29

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

View file

@ -1,6 +1,9 @@
import json
from datetime import datetime, timedelta
from redbot.core.bot import Red
from aurora.models import AuroraBaseModel
@ -12,6 +15,8 @@ class JSONEncoder(json.JSONEncoder):
return str(o)
if isinstance(o, AuroraBaseModel):
return o.to_json()
if isinstance(o, Red):
return None
return super().default(o)