From 0004422c482017328e92f1810644cd57370464ba Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 3 Aug 2023 07:22:55 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- plugins/kernels/fps_kernels/routes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/kernels/fps_kernels/routes.py b/plugins/kernels/fps_kernels/routes.py index 6c89c94f..ba9310e1 100644 --- a/plugins/kernels/fps_kernels/routes.py +++ b/plugins/kernels/fps_kernels/routes.py @@ -54,7 +54,9 @@ async def get_status( ): started = self._app.started_time().isoformat().replace("+00:00", "Z") last_activity = self._app.last_activity().isoformat().replace("+00:00", "Z") - connections = sum([kernel["server"].connections for kernel in kernels.values() if "server" in kernel]) + connections = sum( + [kernel["server"].connections for kernel in kernels.values() if "server" in kernel] + ) return { "started": started, "last_activity": last_activity,