Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
erikh360 committed Aug 3, 2023
1 parent 7438a80 commit 6365abd
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions yal/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,7 @@
"connect",
"i saw this on facebook",
}
TRACKING_KEYWORDS_ROUND_3 = {
"youth",
"yth",
"yuth",
"yut",
"yoth",
"yot",
"yoh"
}
TRACKING_KEYWORDS_ROUND_3 = {"youth", "yth", "yuth", "yut", "yoth", "yot", "yoh"}
OPTOUT_KEYWORDS = {"stop", "opt out", "cancel", "quit"}
ONBOARDING_REMINDER_KEYWORDS = {
"continue",
Expand Down Expand Up @@ -262,7 +254,11 @@ async def state_start(self):
inbound = utils.clean_inbound(self.inbound.content)

# Save keywords that are used for source tracking
if inbound in TRACKING_KEYWORDS or inbound in TRACKING_KEYWORDS_ROUND_2 or inbound in TRACKING_KEYWORDS_ROUND_3:
if (
inbound in TRACKING_KEYWORDS
or inbound in TRACKING_KEYWORDS_ROUND_2
or inbound in TRACKING_KEYWORDS_ROUND_3
):
self.save_answer("state_source_tracking", inbound)

if inbound in OPTOUT_KEYWORDS:
Expand Down

0 comments on commit 6365abd

Please sign in to comment.