From 8a48960fa741b8018eccfe91a64629b7c258a2f6 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Wed, 9 Jun 2021 10:35:29 +0100 Subject: [PATCH] Use derivations.system_id in select-builds-with-context As that table is always included in the query. --- guix-data-service/model/build.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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