aboutsummaryrefslogtreecommitdiff
path: root/daily-update.py
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2020-10-27 20:11:18 -0500
committerMark Powers <markppowers0@gmail.com>2020-10-27 20:11:18 -0500
commit358ea2d32be88428df0c2739990a117132e98410 (patch)
treeb8756389631b62183c4ece884f7b38f634db9350 /daily-update.py
parent0e58fb890c9b9afe5e438f97c29b6334c0164eda (diff)
Add multiple queries to email utils, add wiki from email.kellyanne
Diffstat (limited to 'daily-update.py')
-rwxr-xr-xdaily-update.py5
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: