Explicitely set db user

This commit is contained in:
Peter J. Holzer 2022-10-23 20:55:33 +02:00
parent 2fdcc2f6c1
commit 806fd310c8
1 changed files with 1 additions and 1 deletions

2
app.py
View File

@ -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