Mercurial > ~dholland > hg > swallowtail > index.cgi
diff shelltools/query-pr/query.py @ 55:40f64a96481f
Adjust database user arrangements and grant schema privs.
author | David A. Holland |
---|---|
date | Sun, 10 Apr 2022 19:36:29 -0400 |
parents | c0be30249ffe |
children | 42d7888272a0 |
line wrap: on
line diff
--- a/shelltools/query-pr/query.py Sun Apr 10 17:41:24 2022 -0400 +++ b/shelltools/query-pr/query.py Sun Apr 10 19:36:29 2022 -0400 @@ -239,11 +239,11 @@ dblink = None -def opendb(): +def opendb(paranoid): global dblink host = "localhost" - user = "swallowtail" + user = "swallowtail_public" if paranoid else "swallowtail_reader" database = "swallowtail" dblink = psycopg2.connect("host=%s user=%s dbname=%s" % (host, user, database))