# HG changeset patch # User cmlenz # Date 1120001071 0 # Node ID 6ffa99b442bfd6b158055020c0ec9831964765ba # Parent df40a4eb7553a213e1e8c6c815b6de9126f7886d Fix error in timeline when builds are in progress. diff --git a/bitten/trac_ext/web_ui.py b/bitten/trac_ext/web_ui.py --- 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: