Only expire open reviews

Closed, Merged, Abandoned reviews don't need to
be re-expired. Only consider patches that are 'open'.

Change-Id: I848a7949a00ef700c1687493a6bd26a7a9508cfd
This commit is contained in:
Ramy Asselin 2016-01-13 16:49:53 -08:00
parent dc6872b8e3
commit c3a621900f
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'):