Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
f711b3be90 | |||
9f47a5cfe1 |
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,2 +1,6 @@
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
ENV
|
ENV
|
||||||
|
*~
|
||||||
|
~*
|
||||||
|
.*~
|
||||||
|
|
||||||
|
@ -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))
|
||||||
|
@ -4,3 +4,4 @@ wsgi-file = server.py
|
|||||||
processes = 4
|
processes = 4
|
||||||
stats = :9191
|
stats = :9191
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user