mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 01:35:28 +01:00
Fixing Black issues
This commit is contained in:
parent
29f7399708
commit
58cdfe9ee5
@ -327,7 +327,8 @@ class FileHelpers:
|
|||||||
return "false"
|
return "false"
|
||||||
return
|
return
|
||||||
|
|
||||||
# TODO Look if not redundant with the precendent function prefixed ajax_ de differentiate and not broke things
|
# TODO Look if not redundant with the precendent function
|
||||||
|
# TODO Prefixed ajax_ to differentiate and not broke things
|
||||||
|
|
||||||
def ajax_unzip_server(self, zip_path, user_id):
|
def ajax_unzip_server(self, zip_path, user_id):
|
||||||
if Helpers.check_file_perms(zip_path):
|
if Helpers.check_file_perms(zip_path):
|
||||||
|
@ -1807,4 +1807,4 @@ class ServerInstance:
|
|||||||
|
|
||||||
def get_server_history(self):
|
def get_server_history(self):
|
||||||
history = self.stats_helper.get_history_stats(self.server_id, 3)
|
history = self.stats_helper.get_history_stats(self.server_id, 3)
|
||||||
return history
|
return history
|
||||||
|
@ -111,7 +111,8 @@ class WebSocketManager(metaclass=Singleton):
|
|||||||
static_clients = self.public_clients | self.auth_clients
|
static_clients = self.public_clients | self.auth_clients
|
||||||
clients = list(filter(filter_fn, static_clients))
|
clients = list(filter(filter_fn, static_clients))
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"Sending to {len(clients)} out of {len(self.public_clients | self.auth_clients)} "
|
f"Sending to {len(clients)} \
|
||||||
|
out of {len(self.public_clients | self.auth_clients)} "
|
||||||
f"clients: {json.dumps({'event': event_type, 'data': data})}"
|
f"clients: {json.dumps({'event': event_type, 'data': data})}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -22,7 +22,9 @@ from app.classes.web.routes.api.servers.server.public import (
|
|||||||
ApiServersServerPublicHandler,
|
ApiServersServerPublicHandler,
|
||||||
)
|
)
|
||||||
from app.classes.web.routes.api.servers.server.stats import ApiServersServerStatsHandler
|
from app.classes.web.routes.api.servers.server.stats import ApiServersServerStatsHandler
|
||||||
from app.classes.web.routes.api.servers.server.history import ApiServersServerHistoryHandler
|
from app.classes.web.routes.api.servers.server.history import (
|
||||||
|
ApiServersServerHistoryHandler,
|
||||||
|
)
|
||||||
from app.classes.web.routes.api.servers.server.stdin import ApiServersServerStdinHandler
|
from app.classes.web.routes.api.servers.server.stdin import ApiServersServerStdinHandler
|
||||||
from app.classes.web.routes.api.servers.server.tasks.index import (
|
from app.classes.web.routes.api.servers.server.tasks.index import (
|
||||||
ApiServersServerTasksIndexHandler,
|
ApiServersServerTasksIndexHandler,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user