feat(aurora): made database.connect() into an async context manager
This commit is contained in:
parent
eebddd6e89
commit
56a2f96a2d
3 changed files with 11 additions and 4 deletions
|
@ -27,7 +27,7 @@ class ImportAuroraView(ui.View):
|
|||
"Deleting original table...", ephemeral=True
|
||||
)
|
||||
|
||||
async with connect() as database:
|
||||
async with await connect() as database:
|
||||
query = f"DROP TABLE IF EXISTS moderation_{self.ctx.guild.id};"
|
||||
database.execute(query)
|
||||
database.commit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue