appease linter

This commit is contained in:
Silversthorn 2023-09-05 20:27:02 +02:00
parent 2d77c456ca
commit 02b7cb8205
2 changed files with 7 additions and 17 deletions

View File

@ -47,7 +47,13 @@ class Webserver:
controller: Controller
helper: Helpers
def __init__(self, helper: Helpers, controller: Controller, tasks_manager, file_helper: FileHelpers):
def __init__(
self,
helper: Helpers,
controller: Controller,
tasks_manager,
file_helper: FileHelpers
):
self.ioloop = None
self.http_server = None
self.https_server = None

View File

@ -125,22 +125,6 @@ class SocketHandler(BaseSocketHandler):
"remove_spinner",
"close_upload_box",
} # Must be overridden at init
page = None
page_query_params = None
controller = None
tasks_manager = None
translator = None
io_loop = None
#Removed because exactly as the mother class
#def initialize(
# self, helper=None, controller=None, tasks_manager=None, translator=None, file_helper=None
#):
# self.helper = helper
# self.controller = controller
# self.tasks_manager = tasks_manager
# self.translator = translator
# self.io_loop = tornado.ioloop.IOLoop.current()
def get_user_id(self):
_, _, user = self.controller.authentication.check(self.get_cookie("token"))