From 806fd310c8fad694f82332fd6d0c10ee2704f2e2 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sun, 23 Oct 2022 20:55:33 +0200 Subject: [PATCH] Explicitely set db user --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 23acef8..5ec5658 100644 --- a/app.py +++ b/app.py @@ -40,7 +40,7 @@ def get_cursor(): def get_db(): if "db" not in g: - g.db = psycopg2.connect(dbname="lesetagebuch") + g.db = psycopg2.connect(dbname="lesetagebuch", user="lesetagebuch") return g.db @app.teardown_appcontext