diff options
author | Mark Powers <markppowers0@gmail.com> | 2020-10-27 20:11:18 -0500 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2020-10-27 20:11:18 -0500 |
commit | 358ea2d32be88428df0c2739990a117132e98410 (patch) | |
tree | b8756389631b62183c4ece884f7b38f634db9350 /daily-update.py | |
parent | 0e58fb890c9b9afe5e438f97c29b6334c0164eda (diff) |
Add multiple queries to email utils, add wiki from email.kellyanne
Diffstat (limited to 'daily-update.py')
-rwxr-xr-x | daily-update.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/daily-update.py b/daily-update.py index 165372a..6a52d16 100755 --- a/daily-update.py +++ b/daily-update.py @@ -1,8 +1,5 @@ #!/usr/bin/python3 -import smtplib -import sys -import time import requests from datetime import date @@ -23,7 +20,7 @@ def get_weather(): def get_unread_reminders(): print("getting unread reminders") subjects = email_helper.filter_unread("subject", "REMINDER:", "subject") - subjects = [s[len("REMINDER: "):].strip() for s in subjects] + subjects = [s["subject"][len("REMINDER: "):].strip() for s in subjects] if len(subjects) > 0: reminder_html = "<h1>Reminders:</h1><ul>" for s in subjects: |