fix: update status type patch was not working

This commit is contained in:
Shariq Ansari 2025-07-14 12:27:14 +05:30
parent 160649bf97
commit 4320142132

View File

@ -27,7 +27,7 @@ def execute():
] ]
for status in deal_statuses: for status in deal_statuses:
if status.type is None or status.type == "": if not status.type or status.type is None or status.type == "Open":
if status.deal_status in openStatuses: if status.deal_status in openStatuses:
type = "Open" type = "Open"
elif status.deal_status in ongoingStatuses: elif status.deal_status in ongoingStatuses: