From e5c663feac37bdab3a9a69838f4604b94412ace6 Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Sat, 9 Oct 2021 15:43:31 -0500 Subject: [PATCH] Add empty connect string to allow Postgres to use env config --- python/scripts/ingest_ptp_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2