Removed print statements

This commit is contained in:
Andrew 2021-08-06 14:15:10 -04:00
parent f957d54348
commit ca9788081b
2 changed files with 1 additions and 4 deletions

View File

@ -455,12 +455,9 @@ class db_shortcuts:
for s in role_server:
found = False
for item in user_servers:
print("SERVER ID: "+ str(s.server_id) + "ITEM ID"+ str(item.server_id))
if s.server_id == item.server_id:
print("IN FOUND")
found = True
if not found:
print("NOT FOUND?")
authorized_servers.append(db_helper.get_server_data_by_id(s.server_id))
for s in authorized_servers:

View File

@ -36,11 +36,11 @@ class PanelHandler(BaseHandler):
defined_servers = self.controller.list_defined_servers()
exec_user_role.add("Super User")
else:
defined_servers = db_helper.get_all_authorized_servers(exec_user_id)
logger.debug(exec_user['roles'])
for r in exec_user['roles']:
role = db_helper.get_role(r)
exec_user_role.add(role['role_name'])
defined_servers = db_helper.get_all_authorized_servers(exec_user_id)
page_data = {
# todo: make this actually pull and compare version data