Merge pull request #540 from nilxam/fix_api_import

Fix wrong valiable used in the filtering statement
This commit is contained in:
Max Lin 2016-07-26 15:49:47 +08:00 committed by GitHub
commit 5cd4811bc9

View File

@ -109,7 +109,7 @@ class RequestFinder(object):
for sr in root.findall('request'): for sr in root.findall('request'):
# ensure staging tool don't picks the processed request again # ensure staging tool don't picks the processed request again
if newcand: 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: if 'new' not in staging_group_states:
continue continue
for act in sr.findall('action'): for act in sr.findall('action'):