WIP: Moderation type registry #26

Closed
cswimr wants to merge 146 commits from aurora-3rd-party into main
Showing only changes of commit 797fd561c9 - Show all commits

View file

@ -173,8 +173,9 @@ class Moderation(AuroraGuildModel):
if result[14] is not None: if result[14] is not None:
changes = json.loads(result[14]) changes = json.loads(result[14])
change_obj_list = [] change_obj_list = []
for change in changes: if changes:
change_obj_list.append(Change.from_dict(bot=bot, data=change)) for change in changes:
change_obj_list.append(Change.from_dict(bot=bot, data=change))
case = { case = {
"moderation_id": int(result[0]), "moderation_id": int(result[0]),