Skip to content

Commit

Permalink
include blast parameter in the name as a search criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
echan217 committed Jun 1, 2023
1 parent 5af1b7c commit 079bdbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dive_sailthru_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _infer_dive_email_type(self, campaign): # noqa: C901 - yeah it's complicat
return DiveEmailTypes.Weekender
elif list_name == "Supply Chain Dive: Operations" and ("Issue" in name or "SCD: Ops v2" in name):
return DiveEmailTypes.Newsletter
elif "Blast" in labels or '-blast-' in name or "blast list" in list_name.lower():
elif "Blast" in labels or '-blast-' in name or "blast=" in name or "blast list" in list_name.lower():
if "QuarterBlast" in name or "Quarters Blast List" in list_name or "Quarter Blast List" in list_name:
return DiveEmailTypes.QuarterBlast
elif "ThirdBlast" in name or "Thirds Blast List" in list_name or "Third Blast List" in list_name:
Expand Down

0 comments on commit 079bdbb

Please sign in to comment.