fix: drop contains_eager for groupby-d result

This commit is contained in:
Angus Hollands
2025-07-28 09:55:39 +01:00
parent 98ef84e774
commit 98d13d8e74

View File

@@ -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