Skip to content

Commit

Permalink
Load all related objects in query_run()
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Feb 22, 2024
1 parent 9b1d0cb commit 16c5f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nextline_rdb/schema/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async def query_run(
) -> types.RunHistory | None:
db = cast(DB, info.context['db'])
async with db.session() as session:
stmt = select(Run).options(selectinload(Run.script))
stmt = select(Run).options(selectinload('*'))
if id is not None:
stmt = stmt.filter(Run.id == id)
else:
Expand Down

0 comments on commit 16c5f6e

Please sign in to comment.