From f692897f4156f99d8988ce40b2e0ee68f1b48613 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Mon, 8 Apr 2013 21:58:59 -0500 Subject: [PATCH] Cope with changed flag return type --- scripts/review-stats/review-stats.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/review-stats/review-stats.py b/scripts/review-stats/review-stats.py index 5a82523..b1cd976 100755 --- a/scripts/review-stats/review-stats.py +++ b/scripts/review-stats/review-stats.py @@ -195,8 +195,10 @@ def run_query(bz): if bug.depends_on: alldeps.update(bug.depends_on) - if bug.flags.find('needinfo?') >= 0: - needinfo.add(bug.id) + for flag in bug.flags: + if (flag['name'] == 'needinfo' + and flag['status'] == '?'): + needinfo.add(bug.id) # Get the status of each "interesting" bug for i in seq_max_split(alldeps.union(needinfo), 500):