Commit b18a4ebc authored by mouadh's avatar mouadh

fix connection

parent cf4dde4d
...@@ -14,7 +14,7 @@ class MyDB(object): ...@@ -14,7 +14,7 @@ class MyDB(object):
host=HOST): host=HOST):
if db is None: if db is None:
self.connection = pg.connect( self.connection = pg.connect(
"user={0} password={1}".format(username, password)) "user={0} password={1} host='{2}'".format(username, password,host))
else: else:
try: try:
self.connection = pg.connect( self.connection = pg.connect(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment