From 348100752bb3070c32eeb0a1ff531de58b2a9722 Mon Sep 17 00:00:00 2001 From: Alexander Kukushkin Date: Fri, 15 May 2015 16:18:31 +0200 Subject: [PATCH] Open connection to self via listen address --- helpers/postgresql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()