Index: trunk/tools/czartool/Gpc1Db.pm
===================================================================
--- trunk/tools/czartool/Gpc1Db.pm	(revision 30917)
+++ trunk/tools/czartool/Gpc1Db.pm	(revision 31706)
@@ -140,9 +140,7 @@
         JOIN $joinTable USING ($id)
         WHERE label LIKE '$label'
-        AND $faultCol != 0
-        AND $stateCol = '$state'
-SQL
-
-        $query->execute;
+        AND ($faultCol != 0 AND $stateCol = '$state') OR $stateCol = 'failed_revert'
+SQL
+    $query->execute;
     return scalar $query->fetchrow_array();
 }
