diff options
author | Christopher Baines <mail@cbaines.net> | 2021-11-12 12:45:09 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2021-11-12 12:45:09 +0000 |
commit | 2fc8afe5ecf783aff1c29bb5f2230f1f1bc013d8 (patch) | |
tree | 668b6f424a0866decce1827ad5adaccac1901695 /guix-build-coordinator/datastore | |
parent | b4b37ccd997c37298f7ad9f3908effb12eb81e2e (diff) | |
download | build-coordinator-2fc8afe5ecf783aff1c29bb5f2230f1f1bc013d8.tar build-coordinator-2fc8afe5ecf783aff1c29bb5f2230f1f1bc013d8.tar.gz |
Return the agent names when listing agents
Diffstat (limited to 'guix-build-coordinator/datastore')
-rw-r--r-- | guix-build-coordinator/datastore/sqlite.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/guix-build-coordinator/datastore/sqlite.scm b/guix-build-coordinator/datastore/sqlite.scm index a885243..8d5fb8d 100644 --- a/guix-build-coordinator/datastore/sqlite.scm +++ b/guix-build-coordinator/datastore/sqlite.scm @@ -578,13 +578,14 @@ WHERE agent_tags.agent_id = :agent_id" (sqlite-prepare db " -SELECT id, description FROM agents ORDER BY id" +SELECT id, name, description FROM agents ORDER BY id" #:cache? #t))) (let ((agents (sqlite-map (match-lambda - (#(id description) + (#(id name description) `((uuid . ,id) + (name . ,name) (description . ,description)))) statement))) (sqlite-reset statement) |