mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 23:42:59 +00:00
chore: satisfy black checker
This commit is contained in:
@@ -1357,7 +1357,9 @@ class UserUrlHandler(BaseHandler):
|
|||||||
return
|
return
|
||||||
|
|
||||||
pending_url = url_concat(
|
pending_url = url_concat(
|
||||||
url_path_join(self.hub.base_url, 'spawn-pending', user.escaped_name, server_name),
|
url_path_join(
|
||||||
|
self.hub.base_url, 'spawn-pending', user.escaped_name, server_name
|
||||||
|
),
|
||||||
{'next': self.request.uri},
|
{'next': self.request.uri},
|
||||||
)
|
)
|
||||||
if spawner.pending or spawner._failed:
|
if spawner.pending or spawner._failed:
|
||||||
@@ -1459,7 +1461,8 @@ class UserRedirectHandler(BaseHandler):
|
|||||||
user_url = url_concat(user_url, parse_qsl(self.request.query))
|
user_url = url_concat(user_url, parse_qsl(self.request.query))
|
||||||
|
|
||||||
url = url_concat(
|
url = url_concat(
|
||||||
url_path_join(self.hub.base_url, "spawn", user.escaped_name), {"next": user_url}
|
url_path_join(self.hub.base_url, "spawn", user.escaped_name),
|
||||||
|
{"next": user_url},
|
||||||
)
|
)
|
||||||
|
|
||||||
self.redirect(url)
|
self.redirect(url)
|
||||||
|
Reference in New Issue
Block a user