diff --git a/app/classes/models/crafty_permissions.py b/app/classes/models/crafty_permissions.py index 12402b48..de43dbb9 100644 --- a/app/classes/models/crafty_permissions.py +++ b/app/classes/models/crafty_permissions.py @@ -23,7 +23,7 @@ peewee_logger = logging.getLogger("peewee") peewee_logger.setLevel(logging.INFO) database = SqliteQueueDatabase( helper.db_path - #pragmas={"journal_mode": "wal", "cache_size": -1024 * 10} + # pragmas={"journal_mode": "wal", "cache_size": -1024 * 10} ) diff --git a/app/classes/models/server_permissions.py b/app/classes/models/server_permissions.py index 58f665bc..1d0a5d35 100644 --- a/app/classes/models/server_permissions.py +++ b/app/classes/models/server_permissions.py @@ -195,9 +195,7 @@ class Permissions_Servers: @staticmethod def remove_roles_of_server(server_id): return ( - Role_Servers.delete() - .where(Role_Servers.server_id == server_id) - .execute() + Role_Servers.delete().where(Role_Servers.server_id == server_id).execute() ) @staticmethod