From 06f9f62b1f3c9ace856728cb34b97ac15a52ddd6 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Wed, 11 Jan 2023 12:41:39 +0100 Subject: [PATCH] [FIX] runbot: fix was alive --- runbot/models/branch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/branch.py b/runbot/models/branch.py index d8d130d0..1b17cb34 100644 --- a/runbot/models/branch.py +++ b/runbot/models/branch.py @@ -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