fix(aurora): lmao i'm dumb
This commit is contained in:
parent
67e3abf5ce
commit
3247e6fb82
1 changed files with 3 additions and 1 deletions
|
@ -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 = (
|
||||
|
|
Loading…
Reference in a new issue