Update utils.py
Browse files
utils.py
CHANGED
@@ -4,9 +4,11 @@ def validate_data(data):
|
|
4 |
return all([
|
5 |
isinstance(data.get("amount"), (int, float)),
|
6 |
isinstance(data.get("lead_score"), (int, float)),
|
7 |
-
isinstance(data.get("
|
8 |
-
isinstance(data.get("
|
9 |
-
isinstance(data.get("close_date_gap"), (int, float)),
|
10 |
isinstance(data.get("industry"), str) and data.get("industry").strip() != "",
|
11 |
-
data.get("stage") in [
|
|
|
|
|
|
|
12 |
])
|
|
|
4 |
return all([
|
5 |
isinstance(data.get("amount"), (int, float)),
|
6 |
isinstance(data.get("lead_score"), (int, float)),
|
7 |
+
isinstance(data.get("emails_last_7_days"), (int, float)),
|
8 |
+
isinstance(data.get("meetings_last_30_days"), (int, float)),
|
|
|
9 |
isinstance(data.get("industry"), str) and data.get("industry").strip() != "",
|
10 |
+
data.get("stage") in [
|
11 |
+
"Prospecting", "Qualified", "Proposal", "Proposal/Price Quote",
|
12 |
+
"Negotiation", "Closed Won", "Closed Lost"
|
13 |
+
]
|
14 |
])
|