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