Commit 38e6ed5b authored by Haas, Ingrid's avatar Haas, Ingrid
Browse files

Update util.py

parent 150044e3
...@@ -7,7 +7,7 @@ import psycopg2,psycopg2.extras ...@@ -7,7 +7,7 @@ import psycopg2,psycopg2.extras
def get_db_connection(): def get_db_connection():
"""Getting a DB connection based on a loaded config that contains the ip and login. This file is not part of repositor """Getting a DB connection based on a loaded config that contains the ip and login. This file is not part of repositor
""" """
conn = psycopg2.connect(host=DB["host"],database=DB["database"], user=DB["user"], password=DB["password"]) conn = psycopg2.connect(host=DB["host"],database=DB["database"], user=DB["user"], password=DB["password"],port=DB["port"])
dictCur = conn.cursor(cursor_factory=psycopg2.extras.DictCursor) dictCur = conn.cursor(cursor_factory=psycopg2.extras.DictCursor)
return dictCur return dictCur
......
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