[FIX] runbot: fix was alive

This commit is contained in:
Xavier-Do 2023-01-11 12:41:39 +01:00
parent 794a6bf7e2
commit 06f9f62b1f

View File

@ -234,7 +234,7 @@ class Branch(models.Model):
if self.draft:
self.reviewers = '' # reset reviewers on draft
if self.was_alive and not self.alive and self.bundle_id.for_next_freeze:
if was_alive and not self.alive and self.bundle_id.for_next_freeze:
if not any(branch.alive and branch.is_pr for branch in self.bundle_id.branch_ids):
self.bundle_id.for_next_freeze = False