Compare commits

...

2 Commits

Author SHA1 Message Date
f711b3be90
gitignore and nothing 2021-06-14 15:14:07 +02:00
9f47a5cfe1
fix 2021-03-01 18:04:00 +01:00
3 changed files with 7 additions and 2 deletions

6
.gitignore vendored
View File

@ -1,2 +1,6 @@
__pycache__/ __pycache__/
ENV ENV
*~
~*
.*~

View File

@ -103,7 +103,7 @@ def call(procName):
cur = dbh.cursor(dictionary=True) cur = dbh.cursor(dictionary=True)
cur.execute("CALL {}(null)".format(procName)) cur.execute("CALL {}(null)".format(procName))
dbh.commit() dbh.commit()
return "{} successfully called {}".format(procName), 202 return "{} successfully called".format(procName), 202
except mariadb.Error as err: except mariadb.Error as err:
dbh.rollback() dbh.rollback()
print("Database error in call {}: {}".format(procName, err)) print("Database error in call {}: {}".format(procName, err))

View File

@ -4,3 +4,4 @@ wsgi-file = server.py
processes = 4 processes = 4
stats = :9191 stats = :9191