refactor: consider empty-string as Not Assigned

(cherry picked from commit 213b2ba942)
This commit is contained in:
ruthra kumar
2024-08-05 14:08:08 +05:30
committed by Mergify
parent baa36c6d5e
commit 989ef52f59

View File

@@ -193,7 +193,7 @@ class SalesPipelineAnalytics:
count_or_amount = info.get(based_on)
if self.filters.get("pipeline_by") == "Owner":
if value == "Not Assigned" or value == "[]" or value is None:
if value == "Not Assigned" or value == "[]" or value is None or not value:
assigned_to = ["Not Assigned"]
else:
assigned_to = json.loads(value)