diff options
author | Christopher Baines <mail@cbaines.net> | 2021-02-05 10:02:44 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2021-02-05 10:02:44 +0000 |
commit | f46c87d191c25527ba5de1e37fa20f02017a11f9 (patch) | |
tree | 0b1d427a33fa75fe718e120fffe9f2da8af75871 | |
parent | 6119d07c8f2250bdce90379c3549141748a8e827 (diff) | |
download | build-coordinator-f46c87d191c25527ba5de1e37fa20f02017a11f9.tar build-coordinator-f46c87d191c25527ba5de1e37fa20f02017a11f9.tar.gz |
Filter out not-tags which don't exist
-rw-r--r-- | guix-build-coordinator/datastore/sqlite.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guix-build-coordinator/datastore/sqlite.scm b/guix-build-coordinator/datastore/sqlite.scm index e50f3d9..83475eb 100644 --- a/guix-build-coordinator/datastore/sqlite.scm +++ b/guix-build-coordinator/datastore/sqlite.scm @@ -1364,9 +1364,9 @@ SELECT id FROM tags WHERE key = :key" (tag->expression tag #f)) tags)) (not-tag-expressions - (map (lambda (tag) - (tag->expression tag #t)) - not-tags))) + (filter-map (lambda (tag) + (tag->expression tag #t)) + not-tags))) ;; If one of the requested tags doesn't exist, nothing can be tagged to ;; it, so just return nothing |