mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix W0611 & R1734 lint issues
This commit is contained in:
parent
dba3fafa87
commit
9ddcd13f2f
@ -18,11 +18,7 @@ from tzlocal import get_localzone
|
||||
from croniter import croniter
|
||||
from app.classes.controllers.roles_controller import RolesController
|
||||
|
||||
from app.classes.models.roles import HelperRoles
|
||||
from app.classes.models.server_permissions import (
|
||||
EnumPermissionsServer,
|
||||
PermissionsServers,
|
||||
)
|
||||
from app.classes.models.server_permissions import EnumPermissionsServer
|
||||
from app.classes.models.crafty_permissions import EnumPermissionsCrafty
|
||||
from app.classes.models.management import HelpersManagement
|
||||
from app.classes.shared.helpers import Helpers
|
||||
@ -42,7 +38,7 @@ class PanelHandler(BaseHandler):
|
||||
return user_roles
|
||||
|
||||
def get_role_servers(self) -> t.List[RolesController.RoleServerJsonType]:
|
||||
servers = list()
|
||||
servers = []
|
||||
for server in self.controller.list_defined_servers():
|
||||
argument = self.get_argument(f"server_{server['server_id']}_access", "0")
|
||||
if argument == "0":
|
||||
|
Loading…
Reference in New Issue
Block a user