mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 14:33:00 +00:00
fix filter check in Proxy.check_routes
and test that check_routes works as intended
This commit is contained in:
@@ -199,7 +199,7 @@ class Proxy(Base):
|
||||
if not routes:
|
||||
routes = yield self.get_routes()
|
||||
|
||||
have_routes = { r['user'] for r in routes if 'user' in r }
|
||||
have_routes = { r['user'] for r in routes.values() if 'user' in r }
|
||||
futures = []
|
||||
db = inspect(self).session
|
||||
for user in db.query(User).filter(User.server != None):
|
||||
|
Reference in New Issue
Block a user