More Tidy and remove debug prints of sql query

pull/321/head
Tom Taylor 2022-05-23 14:40:50 +01:00 committed by GitHub
parent 38178ab326
commit 6eabb388a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

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