From ca4510d3a594d7964c683f731db5cb4aa219efa9 Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Wed, 5 Jun 2024 01:01:17 -0400 Subject: [PATCH] =?UTF-8?q?fix(aurora):=20why=20was=20I=20CLOSING=20THE=20?= =?UTF-8?q?CONNECTION=20THERE=20=F0=9F=98=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aurora/models/moderation.py | 1 - 1 file changed, 1 deletion(-) diff --git a/aurora/models/moderation.py b/aurora/models/moderation.py index 004959d..73c4647 100644 --- a/aurora/models/moderation.py +++ b/aurora/models/moderation.py @@ -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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)" await database.execute(sql, tuple(case.values())) - await database.close() await database.commit() if close_db: await database.close()