Got rid of redefining database pool twice

pull/8/head
sgoudham 4 years ago
parent 00d87ce89d
commit 74f9c21ade

@ -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:

Loading…
Cancel
Save