Got rid of useless connection again

pull/8/head
sgoudham 4 years ago
parent 761f665f29
commit 54eb5a1b9f

@ -243,7 +243,6 @@ async def on_guild_join(guild):
await conn.commit()
print(cur.rowcount, f"Record(s) inserted successfully into Guilds from {guild.name}")
async with pool.acquire() as conn:
async with conn.cursor() as cur:
# Define the insert statement that will insert the user's information
insert = """INSERT INTO members (guildID, discordID) VALUES""" + ", ".join(

Loading…
Cancel
Save