]> git.nbdom.net Git - nb.git/commitdiff
lib/postgres/host_report.sql
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 4 Nov 2024 07:24:23 +0000 (08:24 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 4 Nov 2024 07:24:23 +0000 (08:24 +0100)
lib/postgres/host_report.sql

index 5ad12afee4cb6d9847e669dfb19cd4087cff5370..364af909cfbac565acbdca63cdeee26b5580f30d 100644 (file)
@@ -10,7 +10,7 @@ CREATE VIEW host_report AS
                ,(SELECT MAX(hb.val) FROM host_info hb WHERE hb.key LIKE CONCAT('backup_servers.',hi.host,'.files_transfer')) as backup_files
        FROM host_info hi
        GROUP BY host
-ORDER BY git_updated DESC,backup_updated DESC,host
+ORDER BY backup_updated DESC,git_updated DESC,host
 ;
 GRANT ALL PRIVILEGES ON host_report TO nico;
 GRANT ALL PRIVILEGES ON host_report TO icolas;