aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2022-01-22 18:47:38 +0000
committerChristopher Baines <mail@cbaines.net>2022-01-22 18:47:38 +0000
commit11ec8a806494047589f119b0db2af862e1c41ae2 (patch)
tree981d76f439a28fb6d05de895e1d542fd6e68cfdc /guix-data-service
parentcbef46e68280b6603f2fb51c9551c882d724f510 (diff)
downloaddata-service-11ec8a806494047589f119b0db2af862e1c41ae2.tar
data-service-11ec8a806494047589f119b0db2af862e1c41ae2.tar.gz
Make the revision derivation counts numbers
Diffstat (limited to 'guix-data-service')
-rw-r--r--guix-data-service/model/package-derivation.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/guix-data-service/model/package-derivation.scm b/guix-data-service/model/package-derivation.scm
index cd63daf..109e0f1 100644
--- a/guix-data-service/model/package-derivation.scm
+++ b/guix-data-service/model/package-derivation.scm
@@ -63,4 +63,10 @@ WHERE package_derivations.id IN (
GROUP BY systems.system, package_derivations.target
ORDER BY systems.system DESC, package_derivations.target ASC")
- (exec-query conn query (list commit-hash)))
+ (map
+ (match-lambda
+ ((system target count)
+ (list system
+ target
+ (string->number count))))
+ (exec-query conn query (list commit-hash))))