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
bc71e4e5fd
commit
e716198af4
@ -353,7 +353,7 @@ class Controller:
|
||||
# TODO: Copy files from the zip file to the new server directory
|
||||
server_file = create_data["jarfile"]
|
||||
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":
|
||||
_create_server_properties_if_needed(
|
||||
create_data["server_properties_port"],
|
||||
|
@ -13,13 +13,6 @@ class ApiUsersUserKeyHandler(BaseApiHandler):
|
||||
auth_data = self.authenticate_user()
|
||||
if not auth_data:
|
||||
return
|
||||
(
|
||||
_,
|
||||
_exec_user_crafty_permissions,
|
||||
_,
|
||||
_,
|
||||
_user,
|
||||
) = auth_data
|
||||
if key_id:
|
||||
key = self.controller.users.get_user_api_key(key_id)
|
||||
# does this user id exist?
|
||||
|
@ -1,14 +1,10 @@
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import time
|
||||
import tornado.web
|
||||
import tornado.escape
|
||||
import bleach
|
||||
|
||||
from app.classes.models.crafty_permissions import EnumPermissionsCrafty
|
||||
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.web.base_handler import BaseHandler
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user