diff --git a/moderation/moderation.py b/moderation/moderation.py index 7873d4a..a05314c 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -1130,10 +1130,22 @@ class Moderation(commands.Cog): if conf: raise(LookupError) - changes: list = json.loads(case['changes']) + changes: list = case['changes'] if not changes: - changes.append({'timestamp': case['timestamp'], 'reason': case['reason'], 'user_id': case['moderator_id']}) - changes.append({'timestamp': int(time.time()), 'reason': reason, 'user_id': interaction.user.id}) + changes.append( + { + 'timestamp': case['timestamp'], + 'reason': case['reason'], + 'user_id': case['moderator_id'] + } + ) + changes.append( + { + 'timestamp': int(time.time()), + 'reason': reason, + 'user_id': interaction.user.id + } + ) database = await self.connect() cursor = database.cursor()