summaryrefslogtreecommitdiffstats
path: root/contrib/trivial_rebase.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/trivial_rebase.py')
-rwxr-xr-xcontrib/trivial_rebase.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/trivial_rebase.py b/contrib/trivial_rebase.py
index 538a7e02ac..b5c70c3867 100755
--- a/contrib/trivial_rebase.py
+++ b/contrib/trivial_rebase.py
@@ -221,8 +221,10 @@ class TrivialRebase:
# Note: Sites with different 'copy_min_score' values in the
# approval_categories DB table might want different behavior here.
# Additional categories should also be added if desired.
- if approval["category_id"] == "Code-Review" and approval['value'] != '-2':
- self.AppendAcctApproval(approval['account_id'], '--label Code-Review=%s' % approval['value'])
+ if approval["category_id"] == "Code-Review":
+ if approval['value'] != '-2':
+ self.AppendAcctApproval(approval['account_id'],
+ '--label Code-Review=%s' % approval['value'])
elif approval["category_id"] == "Verified":
# Don't re-add verifies
# self.AppendAcctApproval(approval['account_id'], '--label Verified=%s' % approval['value'])