From 60d4afc6f372c5b2dd8ceb45ffec2a49c4517681 Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Tue, 11 Jun 2024 03:11:45 -0400 Subject: [PATCH] fix(aurora): fixed `AuroraBaseModel.to_json()` not using `AuroraBaseModel.dump()` --- aurora/models/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurora/models/base.py b/aurora/models/base.py index 7cf8ab1..7f91e34 100644 --- a/aurora/models/base.py +++ b/aurora/models/base.py @@ -15,7 +15,7 @@ class AuroraBaseModel(BaseModel): def to_json(self, indent: int | None = None, file: Any | None = None, **kwargs): from ..utilities.json import dump, dumps # pylint: disable=cyclic-import - return dump(self.dump(), file, indent=indent, **kwargs) if file else dumps(self.model_dump(exclude={"bot"}), indent=indent, **kwargs) + return dump(self.dump(), file, indent=indent, **kwargs) if file else dumps(self.dump(), indent=indent, **kwargs) class AuroraGuildModel(AuroraBaseModel): """Subclass of AuroraBaseModel that includes a guild_id attribute and a guild attribute, and a modified to_json() method to match."""