mirror of https://github.com/Aidaho12/haproxy-wi
More Tidy and remove debug prints of sql query
parent
38178ab326
commit
6eabb388a7
|
@ -540,7 +540,6 @@ def select_servers(**kwargs):
|
||||||
sql = """select active from servers where ip = '{}' """.format(kwargs.get("server"))
|
sql = """select active from servers where ip = '{}' """.format(kwargs.get("server"))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
print(str(sql))
|
|
||||||
cursor.execute(sql)
|
cursor.execute(sql)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
out_error(e)
|
out_error(e)
|
||||||
|
@ -847,7 +846,6 @@ def get_dick_permit(**kwargs):
|
||||||
print(str(e))
|
print(str(e))
|
||||||
print('<meta http-equiv="refresh" content="0; url=/app/login.py">')
|
print('<meta http-equiv="refresh" content="0; url=/app/login.py">')
|
||||||
try:
|
try:
|
||||||
print(str(sql))
|
|
||||||
cursor.execute(sql)
|
cursor.execute(sql)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
out_error(e)
|
out_error(e)
|
||||||
|
|
Loading…
Reference in New Issue