diff options
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: |