From: Jakob Cornell Date: Sat, 9 Oct 2021 20:43:31 +0000 (-0500) Subject: Add empty connect string to allow Postgres to use env config X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=e5c663feac37bdab3a9a69838f4604b94412ace6;p=eros.git Add empty connect string to allow Postgres to use env config --- diff --git a/python/scripts/ingest_ptp_json.py b/python/scripts/ingest_ptp_json.py index a8be0bd..793f614 100644 --- a/python/scripts/ingest_ptp_json.py +++ b/python/scripts/ingest_ptp_json.py @@ -50,7 +50,7 @@ def ingest(doc, db_cursor): ) -with contextlib.closing(psycopg2.connect()) as conn, conn.cursor() as cursor: +with contextlib.closing(psycopg2.connect("")) as conn, conn.cursor() as cursor: conn.autocommit = True for p in paths: