WIP: Refactor Aurora (3.0.0) #29

Draft
cswimr wants to merge 347 commits from aurora-pydantic into main
Showing only changes of commit 3247e6fb82 - Show all commits

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 = (