Fixed bug where all roles showed the sum of servers associated with all roles

This commit is contained in:
Andrew 2021-08-09 00:24:08 -04:00
parent 9ec10db762
commit b1215ff20a

View File

@ -272,6 +272,7 @@ class PanelHandler(BaseHandler):
data = {user.user_id: user_roles_list}
user_roles.update(data)
for role in roles:
role_servers = []
role = db_helper.get_role(role.role_id)
for serv_id in role['servers']:
role_servers.append(db_helper.get_server_data_by_id(serv_id)['server_name'])