Fix wrong valiable used in the filtering statement

This commit is contained in:
Max Lin 2016-07-25 22:28:48 +08:00
parent dfd4565c70
commit faefd0edcb

View File

@ -109,7 +109,7 @@ class RequestFinder(object):
for sr in root.findall('request'):
# ensure staging tool don't picks the processed request again
if newcand:
staging_group_states = [review.get('state') for review in root.findall('review') if review.get('by_group') == self.cstaging_group]
staging_group_states = [review.get('state') for review in sr.findall('review') if review.get('by_group') == self.api.cstaging_group]
if 'new' not in staging_group_states:
continue
for act in sr.findall('action'):