aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2021-06-09 10:35:29 +0100
committerChristopher Baines <mail@cbaines.net>2021-06-09 10:35:29 +0100
commit8a48960fa741b8018eccfe91a64629b7c258a2f6 (patch)
treeed150e49965f4f5305740a85f065355312b15d30
parentf421faa790d1f3abf8a67c50f86b814e551e91bf (diff)
downloaddata-service-8a48960fa741b8018eccfe91a64629b7c258a2f6.tar
data-service-8a48960fa741b8018eccfe91a64629b7c258a2f6.tar.gz
Use derivations.system_id in select-builds-with-context
As that table is always included in the query.
-rw-r--r--guix-data-service/model/build.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix-data-service/model/build.scm b/guix-data-service/model/build.scm
index 0959af8..30196eb 100644
--- a/guix-data-service/model/build.scm
+++ b/guix-data-service/model/build.scm
@@ -145,7 +145,7 @@ ORDER BY status"))
`(("guix_revisions.commit = $" . ,revision-commit))
'())
,@(if system
- `(("package_derivations.system_id = $" .
+ `(("derivations.system_id = $" .
,(number->string (system->system-id conn system))))
'())
,@(if target