fix(aurora): fixed a circular import
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 26s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 41s

This commit is contained in:
Seaswimmer 2024-05-04 22:05:14 -04:00
parent 3f8cdf2012
commit 557ac45fcc
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -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]