From 74f9c21ade67b2271a394320ea5282fd5a954a90 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Tue, 4 Aug 2020 00:16:51 +0100 Subject: [PATCH] Got rid of redefining database pool twice --- cogs/relationship.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cogs/relationship.py b/cogs/relationship.py index c2a2ed25..fd9663e6 100644 --- a/cogs/relationship.py +++ b/cogs/relationship.py @@ -115,9 +115,6 @@ class Relationship(Cog): # if the person says yes if msg.content.lower() in ['y', 'yes', 'yea']: - # Setup pool - pool = self.bot.db - # Setup pool connection and cursor async with pool.acquire() as conn: async with conn.cursor() as cur: @@ -207,8 +204,6 @@ class Relationship(Cog): # if the person says yes if msg.content.lower() in ['y', 'yes', 'yea']: - # Setup pool - pool = self.bot.db # Setup pool connection and cursor async with pool.acquire() as conn: