Add empty connect string to allow Postgres to use env config
authorJakob Cornell <jakob+gpg@jcornell.net>
Sat, 9 Oct 2021 20:43:31 +0000 (15:43 -0500)
committerJakob Cornell <jakob+gpg@jcornell.net>
Sat, 9 Oct 2021 20:43:31 +0000 (15:43 -0500)
python/scripts/ingest_ptp_json.py

index a8be0bdb49b300c0500e8bd0c84c9986a79328bb..793f6141baf6754e405e19c9467989838bc699a1 100644 (file)
@@ -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: