Got rid of useless connection again

pull/8/head
sgoudham 4 years ago
parent 54eb5a1b9f
commit 00d87ce89d

@ -279,8 +279,6 @@ async def on_guild_remove(guild):
await conn.commit()
print(cur.rowcount, f"Record deleted successfully from Guild {guild.name}")
# Setup pool connection and cursor
async with pool.acquire() as conn:
async with conn.cursor() as cur:
# Delete the record of the member as the bot leaves the server
delete_query = """DELETE FROM members WHERE guildID = %s"""

Loading…
Cancel
Save