More Tidy and remove debug prints of sql query

pull/321/head
Tom Taylor 3 years ago committed by GitHub
parent 38178ab326
commit 6eabb388a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -386,7 +386,7 @@ def select_user_groups_with_names(user_id, **kwargs):
if kwargs.get("all") is not None:
query = (UserGroups
.select(UserGroups.user_group_id, UserGroups.user_id, Groups.name)
.join(Groups, on=(UserGroups.user_group_id == Groups.group_id)) )
.join(Groups, on=(UserGroups.user_group_id == Groups.group_id)))
else:
query = (UserGroups
.select(UserGroups.user_group_id, Groups.name)
@ -540,7 +540,6 @@ def select_servers(**kwargs):
sql = """select active from servers where ip = '{}' """.format(kwargs.get("server"))
try:
print(str(sql))
cursor.execute(sql)
except Exception as e:
out_error(e)
@ -847,7 +846,6 @@ def get_dick_permit(**kwargs):
print(str(e))
print('<meta http-equiv="refresh" content="0; url=/app/login.py">')
try:
print(str(sql))
cursor.execute(sql)
except Exception as e:
out_error(e)

Loading…
Cancel
Save