Merge "Only expire open reviews"

This commit is contained in:
Jenkins 2017-02-17 14:43:04 +00:00 committed by Gerrit Code Review
commit 1a1e6bc75b
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ def main():
for line in stdout:
row = json.loads(line)
if 'rowCount' not in row:
if 'rowCount' not in row and 'open' in row and row['open']:
# Search for negative approvals
for approval in row['currentPatchSet']['approvals']:
if approval['value'] in ('-1', '-2'):