refactor: consider empty-string as Not Assigned

This commit is contained in:
ruthra kumar
2024-08-05 14:08:08 +05:30
parent 751a25c4b7
commit 213b2ba942

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)