WIP: Refactor Aurora (3.0.0) #29
1 changed files with 0 additions and 1 deletions
|
@ -366,7 +366,6 @@ class Moderation(AuroraGuildModel):
|
||||||
sql = f"INSERT INTO `moderation_{guild_id}` (moderation_id, timestamp, moderation_type, target_type, target_id, moderator_id, role_id, duration, end_timestamp, reason, resolved, resolved_by, resolve_reason, expired, changes, metadata) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
|
sql = f"INSERT INTO `moderation_{guild_id}` (moderation_id, timestamp, moderation_type, target_type, target_id, moderator_id, role_id, duration, end_timestamp, reason, resolved, resolved_by, resolve_reason, expired, changes, metadata) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
|
||||||
await database.execute(sql, tuple(case.values()))
|
await database.execute(sql, tuple(case.values()))
|
||||||
|
|
||||||
await database.close()
|
|
||||||
await database.commit()
|
await database.commit()
|
||||||
if close_db:
|
if close_db:
|
||||||
await database.close()
|
await database.close()
|
||||||
|
|
Loading…
Reference in a new issue