mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
fix: drop contains_eager for groupby-d result
This commit is contained in:
@@ -170,7 +170,7 @@ class UserListAPIHandler(APIHandler):
|
||||
query = query.options(
|
||||
selectinload(orm.User.roles),
|
||||
selectinload(orm.User.groups),
|
||||
contains_eager(orm.User._orm_spawners).selectinload(orm.Spawner.user),
|
||||
selectinload(orm.User._orm_spawners).selectinload(orm.Spawner.user),
|
||||
# raiseload here helps us make sure we've loaded everything in one query
|
||||
# but since we share a single db session, we can't do this for real
|
||||
# but it's useful in testing
|
||||
|
Reference in New Issue
Block a user