mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Appease the linter
This commit is contained in:
parent
316d0aa17a
commit
73b3571606
@ -9,6 +9,7 @@ from peewee import (
|
||||
|
||||
from app.classes.models.base_model import BaseModel
|
||||
from app.classes.models.users import Users, ApiKeys, helper_users
|
||||
from app.classes.shared.permission_helper import PermissionHelper
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@ -209,7 +210,7 @@ class Permissions_Crafty:
|
||||
user["user_id"]
|
||||
)
|
||||
key_permissions_mask: str = key.crafty_permissions
|
||||
permissions_mask = helper_users.combine_masks(
|
||||
permissions_mask = PermissionHelper.combine_masks(
|
||||
user_permissions_mask, key_permissions_mask
|
||||
)
|
||||
permissions_list = Permissions_Crafty.get_permissions(permissions_mask)
|
||||
|
@ -762,7 +762,7 @@ class Server:
|
||||
return False
|
||||
|
||||
def backup_server(self):
|
||||
if self.settings["backup_path"] is "":
|
||||
if self.settings["backup_path"] == "":
|
||||
return
|
||||
backup_thread = threading.Thread(
|
||||
target=self.a_backup_server, daemon=True, name=f"backup_{self.name}"
|
||||
|
Loading…
Reference in New Issue
Block a user