Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
[-] fix invalid target_session_attrs value in WebUI URI, fixes #674
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Aug 18, 2023
1 parent 6125755 commit f315e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpy/datadb.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def setConnectionString(host, port, dbname, username, password, require_ssl=Fals
dbname,
username,
'' if password == '' else f'password={password}',
'' if psycopg2.__libpq_version__ < 100000 else 'target_session_attrs="read-write"',
'' if psycopg2.__libpq_version__ < 100000 else 'target_session_attrs=read-write',
connect_timeout,
'' if not require_ssl else 'sslmode=require')

Expand Down

0 comments on commit f315e93

Please sign in to comment.