From f8b1e03d0e35eab2b6e6d50cfe8ddd9a0fb7f136 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 18 Dec 2023 16:29:21 -0500 Subject: [PATCH] fix(moderation): fixed moderation importer --- moderation/importers/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation/importers/moderation.py b/moderation/importers/moderation.py index 35d2c2e..7c02126 100644 --- a/moderation/importers/moderation.py +++ b/moderation/importers/moderation.py @@ -31,7 +31,7 @@ class ImportModerationView(ui.View): await interaction.edit_original_response(content="Importing moderations...") file = await self.ctx.message.attachments[0].read() - data = sorted(json.loads(file), key=lambda x: x['case']) + data = sorted(json.loads(file), key=lambda x: x['moderation_id']) user_mod_types = [ 'NOTE',