Appease the linter

This commit is contained in:
Andrew 2022-04-12 19:22:57 -04:00
parent 316d0aa17a
commit 73b3571606
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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}"