]> git.nbdom.net Git - nb.git/commitdiff
exit
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 17 Oct 2024 21:09:08 +0000 (23:09 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 17 Oct 2024 21:09:08 +0000 (23:09 +0200)
lib/postgres/host.sql

index dd1351fbddb1ddf6457ae89c4c04ec030b1ed1af..10e98e7fcecd2155ffb8e5b7c5280fca531e79e8 100644 (file)
@@ -5,6 +5,7 @@ CREATE VIEW host AS
                ,count(*) as infos
                -- ,array_to_string(array_agg(DISTINCT CASE WHEN key LIKE 'git.%.name' THEN val ELSE null END),' ') as installed
                ,count(DISTINCT CASE WHEN key LIKE 'git.%.path' THEN val ELSE null END) as repos
+               ,max(DISTINCT CASE WHEN key LIKE 'git.%.exit_code' THEN val ELSE null END) as exit
                ,array_to_string(array_agg(DISTINCT CASE WHEN key LIKE 'git.%.branch' THEN val ELSE null END),' ') as branches
                ,array_to_string(array_agg(DISTINCT CASE WHEN key IN ( 'sys.nproc','sys.arch','sys.model','sys.os' ) THEN val ELSE null END),chr(10)) as product
                -- NB 17.10.24 ,array_to_string(array_agg(DISTINCT CASE WHEN key IN ( 'sys.nproc','sys.arch','sys.width','sys.product' ) THEN val ELSE null END),chr(10)) as product