Compare commits
No commits in common. "356d58f9d7247cd07d51d42c8eaf5a2fdc910aae" and "1313834ea51ff21232a3d83f387fcf4db7b68311" have entirely different histories.
356d58f9d7
...
1313834ea5
2 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ class Change(AuroraBaseModel):
|
|||
|
||||
@classmethod
|
||||
def from_dict(cls, bot: Red, guild_id: int, data: dict) -> "Change":
|
||||
return cls(bot=bot, guild_id=guild_id, **data)
|
||||
return cls(bot=bot, **data)
|
||||
|
||||
class PartialUser(AuroraBaseModel):
|
||||
id: int
|
||||
|
|
|
@ -11,7 +11,7 @@ class JSONEncoder(json.JSONEncoder):
|
|||
if isinstance(o, timedelta):
|
||||
return str(o)
|
||||
if isinstance(o, AuroraBaseModel):
|
||||
return o.to_json()
|
||||
return o.model_dump()
|
||||
return super().default(o)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue