This commit is contained in:
hailin 2024-10-29 12:19:55 +08:00
parent abe01828ab
commit 9c2c6dac78
1 changed files with 1 additions and 0 deletions

1
app.py
View File

@ -197,6 +197,7 @@ def calculate_statistics():
# Count emails that are neither "cold lead" nor "disqualified lead"
else:
other_lead_count += 1
print("Other Lead Found:", email) # Print statement for each "other lead"
# Check if there is a promotion history
promotion_history = email.get('promotion history', [])
if not promotion_history: # If promotion history is empty or nonexistent