fix(aurora): fixed another typeerror

This commit is contained in:
Seaswimmer 2024-05-24 03:53:38 -04:00
parent 51d3245703
commit 797fd561c9
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

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]),