From 9b9a4e8227a446064f2af45b21ad2aa1ca7962a5 Mon Sep 17 00:00:00 2001 From: "Dusty.P" Date: Fri, 20 Apr 2018 21:10:05 -0800 Subject: [PATCH] Switching to asynpg --- geeksbot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/geeksbot.py b/geeksbot.py index efd6490..9071bcf 100644 --- a/geeksbot.py +++ b/geeksbot.py @@ -64,10 +64,10 @@ class Geeksbot(commands.Bot): self.gcs_service = build('customsearch', 'v1', developerKey=self.bot_secrets['google_search_key']) async def connect_db(self): - self.db_con = await asyncpg.connect(host={self.bot_secrets['db_con']['host']}, - database={self.bot_secrets['db_con']['db_name']}, - user={self.bot_secrets['db_con']['user']}, - password={self.bot_secrets['db_con']['password']}) + self.db_con = await asyncpg.connect(host=self.bot_secrets['db_con']['host'], + database=self.bot_secrets['db_con']['db_name'], + user=self.bot_secrets['db_con']['user'], + password=self.bot_secrets['db_con']['password']) @staticmethod async def get_custom_prefix(bot_inst, message):