From bba8d9bd6888d00e4184e5f09b5d5ca18f8fa726 Mon Sep 17 00:00:00 2001 From: Zach Aysan Date: Tue, 20 Aug 2024 12:31:10 +0000 Subject: [PATCH] Remove stale change request checking code --- api/segments/models.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/api/segments/models.py b/api/segments/models.py index a690f55a2b09..44f8066b82a0 100644 --- a/api/segments/models.py +++ b/api/segments/models.py @@ -136,11 +136,6 @@ def id_exists_in_rules_data(rules_data: typing.List[dict]) -> bool: @hook(BEFORE_CREATE, when="version_of", is_now=None) def set_default_version_to_one_if_new_segment(self): - # Change request segments default to None. - if hasattr(self, "change_request_id"): - if self.change_request_id: - return - if self.version is None: self.version = 1