Open connection to self via listen address

This commit is contained in:
Alexander Kukushkin
2015-05-15 16:18:31 +02:00
parent af9ebfa3b9
commit 348100752b
+1 -1
View File
@@ -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()