fix(aurora): lmao i'm dumb

This commit is contained in:
Seaswimmer 2024-06-05 00:59:33 -04:00
parent 67e3abf5ce
commit 3247e6fb82
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -33,7 +33,6 @@ class ImportAuroraView(ui.View):
query = f"DROP TABLE IF EXISTS moderation_{self.ctx.guild.id};"
database.execute(query)
database.commit()
database.close()
await interaction.edit_original_response(content="Creating new table...")
@ -118,6 +117,9 @@ class ImportAuroraView(ui.View):
except Exception as e: # pylint: disable=broad-exception-caught
failed_cases.append(str(case["moderation_id"]) + f": {e}")
await database.commit()
await database.close()
await interaction.edit_original_response(content="Import complete.")
if failed_cases:
filename = (