diff --git a/helpers/postgresql.py b/helpers/postgresql.py index 3c669ab5..f872385d 100644 --- a/helpers/postgresql.py +++ b/helpers/postgresql.py @@ -46,7 +46,7 @@ class Postgresql: def cursor(self): if not self.cursor_holder: - self.conn = psycopg2.connect('postgres://{}/postgres'.format(self.config['connect_address'])) + self.conn = psycopg2.connect('postgres://{}/postgres'.format(self.config['listen'])) self.conn.autocommit = True self.cursor_holder = self.conn.cursor()