From 00d87ce89dd2d08294729541c70a96dca3389e6b Mon Sep 17 00:00:00 2001 From: sgoudham Date: Mon, 3 Aug 2020 23:59:40 +0100 Subject: [PATCH] Got rid of useless connection again --- main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.py b/main.py index ce349ec3..fcff17a9 100644 --- a/main.py +++ b/main.py @@ -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"""