Skip to content

Commit 8aa9d94

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 78dbdb1 commit 8aa9d94

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

jupyterhub_idle_culler/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,12 @@ async def handle_server(user, server_name, server, max_age, inactive_limit):
237237
# inactive_limit = server['state']['culltime']
238238

239239
should_cull = (
240-
inactive is not None and inactive.total_seconds() >= inactive_limit and ((cull_default_servers and server_name == "") or (cull_named_servers and server_name))
240+
inactive is not None
241+
and inactive.total_seconds() >= inactive_limit
242+
and (
243+
(cull_default_servers and server_name == "")
244+
or (cull_named_servers and server_name)
245+
)
241246
)
242247
if should_cull:
243248
app_log.info(

0 commit comments

Comments
 (0)