fix: Attempt to resolve issue with Ubuntu 24.04 segmentation fault
This commit is contained in:
parent
ff6d8cb367
commit
0ce2339587
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from sqlalchemy.orm import joinedload
|
||||
from sqlalchemy.orm import selectinload
|
||||
from sqlalchemy.future import select
|
||||
from cognee.modules.users.models import User
|
||||
from cognee.infrastructure.databases.relational import get_relational_engine
|
||||
|
|
@ -11,7 +11,7 @@ async def get_default_user():
|
|||
async with db_engine.get_async_session() as session:
|
||||
query = (
|
||||
select(User)
|
||||
.options(joinedload(User.groups))
|
||||
.options(selectinload(User.groups))
|
||||
.where(User.email == "default_user@example.com")
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue