WIP: Refactor Aurora (3.0.0) #29
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue