diff options
| -rw-r--r-- | python/db.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/db.py b/python/db.py index 5c85c8cc..1fe42b85 100644 --- a/python/db.py +++ b/python/db.py @@ -1,8 +1,11 @@ import psycopg2 +from psycopg2.extras import DictCursor + conn = psycopg2.connect(database="ET", user="et_user", password="Serenitas1", - host="debian") + host="debian", + cursor_factory=DictCursor) def with_connection(f): def with_connection_(*args, **kwargs): |
