Skip to content

Commit

Permalink
Merge pull request #43 from simonsobs/dev
Browse files Browse the repository at this point in the history
Load all related objects in `query_run()`
  • Loading branch information
TaiSakuma authored Feb 22, 2024
2 parents 9b1d0cb + 16c5f6e commit 04729a8
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 04729a8

Please sign in to comment.