Compare commits
2 commits
90be42769c
...
64758686bb
Author | SHA1 | Date | |
---|---|---|---|
64758686bb | |||
fce4001152 |
2 changed files with 1 additions and 5 deletions
|
@ -60,7 +60,7 @@ class ImportAuroraView(ui.View):
|
|||
case["target_id"] = int(case["target_id"])
|
||||
case["moderator_id"] = int(case["moderator_id"])
|
||||
|
||||
if "changes" not in case or not case["changes"]:
|
||||
if not case.get("changes", None):
|
||||
changes = []
|
||||
else:
|
||||
if not isinstance(case["changes"], list):
|
||||
|
|
|
@ -25,7 +25,3 @@ class AuroraGuildModel(AuroraBaseModel):
|
|||
|
||||
def dump(self) -> dict:
|
||||
return self.model_dump(exclude={"bot", "guild_id", "guild"})
|
||||
|
||||
def to_json(self, indent: int | None = None, file: Any | None = None, **kwargs) -> str:
|
||||
from ..utilities.json import dump, dumps # pylint: disable=cyclic-import
|
||||
return dump(self.dump(), file, indent=indent, **kwargs) if file else dumps(self.dump(), indent=indent, **kwargs)
|
||||
|
|
Loading…
Reference in a new issue