From fe9aecd2ae4a4ed4c7f8b0c3478d60791804f4ca Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sun, 23 Aug 2020 21:29:32 +0100 Subject: [PATCH] Reformatted owner commands --- cogs/owner.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cogs/owner.py b/cogs/owner.py index 826829f8..493b5062 100644 --- a/cogs/owner.py +++ b/cogs/owner.py @@ -69,13 +69,11 @@ class Owner(Cog): async def reload_db(self, ctx): """Reloads the database by inserting/updating all the records""" - # Setup pool - pool = self.bot.db - # Store every single record into an array records = [(ctx.guild.id, member.id) for member in ctx.guild.members] - # Setup up pool connection and cursor + # Setup up pool connection + pool = self.bot.db async with pool.acquire() as conn: # Define the insert statement that will insert the user's information