2 Commits

Author SHA1 Message Date
32a66dc189 dbconfig 2021-07-02 11:08:55 +02:00
3dd00d6dcd db in account 2021-07-02 11:02:08 +02:00
2 changed files with 2 additions and 4 deletions

View File

@ -6,10 +6,6 @@ LABEL ImageName="registry.hottis.de/hv2/hv2-api"
ARG APP_DIR="/opt/app"
ARG CONF_DIR="${APP_DIR}/config"
ENV DB_HOST="172.16.10.18"
ENV DB_NAME="hausverwaltung"
ENV DB_USER="hausverwaltung-ui"
ENV DB_PASS="test123"
RUN \

2
db.py
View File

@ -22,6 +22,8 @@ except KeyError:
DB_HOST = config["database"]["host"]
DB_NAME = config["database"]["name"]
logger.info(f"db config: {DB_USER}, {DB_NAME}, {DB_HOST}, {DB_PASS}")
def databaseOperation(cursor, params):
cursor.execute('SELECT key, value FROM claims_for_user_v where "user" = %s and application = %s',