aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix-build-coordinator/datastore/sqlite.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/guix-build-coordinator/datastore/sqlite.scm b/guix-build-coordinator/datastore/sqlite.scm
index 8d5fb8d..89fea58 100644
--- a/guix-build-coordinator/datastore/sqlite.scm
+++ b/guix-build-coordinator/datastore/sqlite.scm
@@ -578,15 +578,16 @@ WHERE agent_tags.agent_id = :agent_id"
(sqlite-prepare
db
"
-SELECT id, name, description FROM agents ORDER BY id"
+SELECT id, name, description, active FROM agents ORDER BY id"
#:cache? #t)))
(let ((agents (sqlite-map
(match-lambda
- (#(id name description)
+ (#(id name description active)
`((uuid . ,id)
(name . ,name)
- (description . ,description))))
+ (description . ,description)
+ (active . ,(eq? active 1)))))
statement)))
(sqlite-reset statement)