Fixing warnings

This commit is contained in:
Silversthorn 2023-11-10 23:16:04 +01:00
parent aa7f47a4f4
commit 586b2038b6
3 changed files with 4 additions and 7 deletions

View File

@ -3,17 +3,16 @@ import datetime
import typing as t
from peewee import (
CharField,
# AutoField,
DateTimeField,
BooleanField,
IntegerField,
ForeignKeyField,
)
from playhouse.shortcuts import model_to_dict
from app.classes.shared.main_models import DatabaseShortcuts
from app.classes.models.base_model import BaseModel
from app.classes.models.users import Users
# from app.classes.models.users import Users
from app.classes.shared.helpers import Helpers
logger = logging.getLogger(__name__)

View File

@ -575,7 +575,7 @@ class Controller:
role_id = role
self.server_perms.add_role_server(new_server_id, role_id, "11111111")
return new_server_id, server_fs_uuid
return new_server_id
@staticmethod
def verify_jar_server(server_path: str, server_jar: str):

View File

@ -723,9 +723,7 @@ class ApiServersIndexHandler(BaseApiHandler):
405, {"status": "error", "error": "DATA CONSTRAINT FAILED"}
)
return
new_server_id, new_server_uuid = self.controller.create_api_server(
data, user["user_id"]
)
new_server_id = self.controller.create_api_server(data, user["user_id"])
self.controller.servers.stats.record_stats()