changeset 67:6ffa99b442bf

Fix error in timeline when builds are in progress.
author cmlenz
date Tue, 28 Jun 2005 23:24:31 +0000
parents df40a4eb7553
children 234600bf0d49
files bitten/trac_ext/web_ui.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/trac_ext/web_ui.py
+++ b/bitten/trac_ext/web_ui.py
@@ -195,8 +195,9 @@
             cursor.execute("SELECT name,label,rev,slave,time,status "
                            "FROM bitten_build "
                            "  INNER JOIN bitten_config ON (name=config) "
-                           "WHERE time>=%s AND time<=%s ORDER BY time",
-                           (start, stop))
+                           "WHERE time>=%s AND time<=%s "
+                           "AND status IN (%s, %s) ORDER BY time",
+                           (start, stop, Build.SUCCESS, Build.FAILURE))
             event_kinds = {Build.SUCCESS: 'successbuild',
                            Build.FAILURE: 'failedbuild'}
             for name, label, rev, slave, time, status in cursor:
Copyright (C) 2012-2017 Edgewall Software