From 557ac45fccad00c4ccd07f0274a55d739dd7772a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 4 May 2024 22:05:14 -0400 Subject: [PATCH] fix(aurora): fixed a circular import --- aurora/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurora/models.py b/aurora/models.py index cef07fe..198653b 100644 --- a/aurora/models.py +++ b/aurora/models.py @@ -5,7 +5,6 @@ from discord import Forbidden, HTTPException, InvalidData, NotFound from pydantic import BaseModel, ConfigDict from redbot.core.bot import Red -from aurora.utilities.json import dumps from aurora.utilities.utils import generate_dict @@ -80,6 +79,7 @@ class Moderation(AuroraGuildModel): def update(self): from aurora.utilities.database import connect + from aurora.utilities.json import dumps query = f"UPDATE moderation_{self.guild_id} SET timestamp = ?, moderation_type = ?, target_type = ?, moderator_id = ?, role_id = ?, duration = ?, end_timestamp = ?, reason = ?, resolved = ?, resolved_by = ?, resolve_reason = ?, expired = ?, changes = ?, metadata = ? WHERE moderation_id = ?;" changes = [change.to_json() for change in self.changes]