From 514f347b371d2a99a377498b94c0b19a770c3d03 Mon Sep 17 00:00:00 2001 From: Vysakh Menon Date: Mon, 25 Nov 2024 09:15:30 -0800 Subject: [PATCH] 24548 Incorporator should not be ceased (#3091) --- colin-api/src/colin_api/models/corp_party.py | 2 +- colin-api/src/colin_api/models/filing.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/colin-api/src/colin_api/models/corp_party.py b/colin-api/src/colin_api/models/corp_party.py index 108c72538..bbb72cfe8 100644 --- a/colin-api/src/colin_api/models/corp_party.py +++ b/colin-api/src/colin_api/models/corp_party.py @@ -393,7 +393,7 @@ def end_director_by_name(cls, cursor, director: Dict, event_id: int, corp_num: s """ update corp_party set end_event_id=:event_id, cessation_dt=TO_DATE(:cessation_date, 'YYYY-mm-dd') - where corp_num=:corp_num + where party_typ_cd='DIR' and end_event_id is null and corp_num=:corp_num """ ) try: diff --git a/colin-api/src/colin_api/models/filing.py b/colin-api/src/colin_api/models/filing.py index ee8d24ef9..9b687b164 100644 --- a/colin-api/src/colin_api/models/filing.py +++ b/colin-api/src/colin_api/models/filing.py @@ -1655,9 +1655,6 @@ def _process_directors(cls, cursor, filing: Filing, business: Business, corp_num cursor=cursor, director=director, event_id=filing.event_id, corp_num=corp_num ) changed_dirs.append(director) - Party.end_director_by_name( - cursor=cursor, director=director, event_id=filing.event_id, corp_num=corp_num - ) found_match = True if not found_match: raise GenericException(