Update email search query in collect function to use dynamic input instead of hardcoded subject
Browse files- controllers/mail.py +2 -3
controllers/mail.py
CHANGED
@@ -180,9 +180,8 @@ def collect(query = (datetime.today() - timedelta(days=21)).strftime('after:%Y/%
|
|
180 |
Returns:
|
181 |
None
|
182 |
"""
|
183 |
-
|
184 |
-
emails = search_emails(
|
185 |
-
# emails = search_emails(query)
|
186 |
if emails:
|
187 |
print("Found %d emails:\n", len(emails))
|
188 |
logger.info("Found %d emails after two_weeks_ago:\n", len(emails))
|
|
|
180 |
Returns:
|
181 |
None
|
182 |
"""
|
183 |
+
# query = "subject:Re: Smartcareers algorithm debug and improvement'"
|
184 |
+
emails = search_emails(query)
|
|
|
185 |
if emails:
|
186 |
print("Found %d emails:\n", len(emails))
|
187 |
logger.info("Found %d emails after two_weeks_ago:\n", len(emails))
|