mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 09:45:28 +01:00
Appease the linter
This commit is contained in:
parent
bc71e4e5fd
commit
e716198af4
@ -353,7 +353,7 @@ class Controller:
|
|||||||
# TODO: Copy files from the zip file to the new server directory
|
# TODO: Copy files from the zip file to the new server directory
|
||||||
server_file = create_data["jarfile"]
|
server_file = create_data["jarfile"]
|
||||||
raise NotImplementedError("Not yet implemented")
|
raise NotImplementedError("Not yet implemented")
|
||||||
self.import_helper.import_java_zip_server()
|
# self.import_helper.import_java_zip_server()
|
||||||
if data["create_type"] == "minecraft_java":
|
if data["create_type"] == "minecraft_java":
|
||||||
_create_server_properties_if_needed(
|
_create_server_properties_if_needed(
|
||||||
create_data["server_properties_port"],
|
create_data["server_properties_port"],
|
||||||
|
@ -13,13 +13,6 @@ class ApiUsersUserKeyHandler(BaseApiHandler):
|
|||||||
auth_data = self.authenticate_user()
|
auth_data = self.authenticate_user()
|
||||||
if not auth_data:
|
if not auth_data:
|
||||||
return
|
return
|
||||||
(
|
|
||||||
_,
|
|
||||||
_exec_user_crafty_permissions,
|
|
||||||
_,
|
|
||||||
_,
|
|
||||||
_user,
|
|
||||||
) = auth_data
|
|
||||||
if key_id:
|
if key_id:
|
||||||
key = self.controller.users.get_user_api_key(key_id)
|
key = self.controller.users.get_user_api_key(key_id)
|
||||||
# does this user id exist?
|
# does this user id exist?
|
||||||
|
@ -1,14 +1,10 @@
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
import time
|
|
||||||
import tornado.web
|
import tornado.web
|
||||||
import tornado.escape
|
import tornado.escape
|
||||||
import bleach
|
|
||||||
|
|
||||||
from app.classes.models.crafty_permissions import EnumPermissionsCrafty
|
from app.classes.models.crafty_permissions import EnumPermissionsCrafty
|
||||||
from app.classes.shared.helpers import Helpers
|
from app.classes.shared.helpers import Helpers
|
||||||
from app.classes.shared.file_helpers import FileHelpers
|
|
||||||
from app.classes.shared.main_models import DatabaseShortcuts
|
from app.classes.shared.main_models import DatabaseShortcuts
|
||||||
from app.classes.web.base_handler import BaseHandler
|
from app.classes.web.base_handler import BaseHandler
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user