Skip to content

Commit

Permalink
Update PgDBI.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zaihuaji authored Jan 23, 2025
1 parent 2977273 commit 4d0b7b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rda_python_common/PgDBI.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def pgconnect(reconnect = 0, pgcnt = 0, autocommit = True):
config['host'] = PGDBI['DBHOST'] if PGDBI['DBHOST'] else PGDBI['DEFHOST']
if not PGDBI['DBPORT']: PGDBI['DBPORT'] = get_dbport(PGDBI['DBNAME'])
if PGDBI['DBPORT']: config['port'] = PGDBI['DBPORT']
config = ['password'] = get_pgpass_password()
config['password'] = get_pgpass_password()

sqlstr = "psycopg2.connect(**{})".format(config)
if PgLOG.PGLOG['DBGLEVEL']: PgLOG.pgdbg(1000, sqlstr)
Expand Down

0 comments on commit 4d0b7b4

Please sign in to comment.