Use derivations.system_id in select-builds-with-context

As that table is always included in the query.
This commit is contained in:
Christopher Baines 2021-06-09 10:35:29 +01:00
parent f421faa790
commit 8a48960fa7

View file

@ -145,7 +145,7 @@ ORDER BY status"))
`(("guix_revisions.commit = $" . ,revision-commit)) `(("guix_revisions.commit = $" . ,revision-commit))
'()) '())
,@(if system ,@(if system
`(("package_derivations.system_id = $" . `(("derivations.system_id = $" .
,(number->string (system->system-id conn system)))) ,(number->string (system->system-id conn system))))
'()) '())
,@(if target ,@(if target