[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: database: Fix db-get-build-percentage query.
From: |
Mathieu Othacehe |
Subject: |
branch master updated: database: Fix db-get-build-percentage query. |
Date: |
Wed, 10 Feb 2021 12:24:41 -0500 |
This is an automated email from the git hooks/post-receive script.
mothacehe pushed a commit to branch master
in repository guix-cuirass.
The following commit(s) were added to refs/heads/master by this push:
new e77a0a9 database: Fix db-get-build-percentage query.
e77a0a9 is described below
commit e77a0a94fe6cd48027faac531afbf546ca731c5f
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Wed Feb 10 18:23:41 2021 +0100
database: Fix db-get-build-percentage query.
* src/cuirass/database.scm (db-get-build-percentage): Consider both
successful
and failing builds.
---
src/cuirass/database.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cuirass/database.scm b/src/cuirass/database.scm
index d82dae6..a5b06e2 100644
--- a/src/cuirass/database.scm
+++ b/src/cuirass/database.scm
@@ -682,7 +682,7 @@ last_build.duration AS last_duration FROM builds,
(SELECT GREATEST((stoptime - starttime), 1) AS duration FROM Builds
WHERE job_name IN
(SELECT job_name from Builds WHERE id = " build-id ")
-AND status = 0
+AND status >= 0
ORDER BY Builds.timestamp DESC LIMIT 1) last_build
where id = " build-id ") d;
"))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: database: Fix db-get-build-percentage query.,
Mathieu Othacehe <=