diff --git a/scripts/review-stats/review-stats.py b/scripts/review-stats/review-stats.py index 7492d6e..c2f1de8 100755 --- a/scripts/review-stats/review-stats.py +++ b/scripts/review-stats/review-stats.py @@ -230,7 +230,10 @@ def select_needsponsor(bug, bugd): if (bugd['reviewflag'] == ' ' and NEEDSPONSOR in bugd['blockedby'] and bug.bug_status != 'CLOSED' - and nobody(bug.assigned_to) == '(Nobody)'): + and nobody(bug.assigned_to) == '(Nobody)' + and string.lower(bug.status_whiteboard).find('buildfails') < 0 + and string.lower(bug.status_whiteboard).find('stalledsubmitter') < 0 + and string.lower(bug.status_whiteboard).find('awaitingsubmitter') < 0): return 1 return 0