From 70dfcb93c51c65609aaa9dbecc7eb87ced4d5026 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 3 Nov 2018 22:43:05 +0200 Subject: [PATCH] dspace_statistics_api/database.py: Don't quote host in connect() --- dspace_statistics_api/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dspace_statistics_api/database.py b/dspace_statistics_api/database.py index 73ee022..ddcd9b0 100644 --- a/dspace_statistics_api/database.py +++ b/dspace_statistics_api/database.py @@ -6,7 +6,7 @@ from .config import DATABASE_PORT import psycopg2, psycopg2.extras def database_connection(): - connection = psycopg2.connect("dbname={} user={} password={} host='{}' port={}".format(DATABASE_NAME, DATABASE_USER, DATABASE_PASS, DATABASE_HOST, DATABASE_PORT), cursor_factory=psycopg2.extras.DictCursor) + connection = psycopg2.connect("dbname={} user={} password={} host={} port={}".format(DATABASE_NAME, DATABASE_USER, DATABASE_PASS, DATABASE_HOST, DATABASE_PORT), cursor_factory=psycopg2.extras.DictCursor) return connection