diff options
Diffstat (limited to 'client/modules')
| -rw-r--r-- | client/modules/HN.py | 2 | ||||
| -rw-r--r-- | client/modules/Weather.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/client/modules/HN.py b/client/modules/HN.py index 16aeab8..692abea 100644 --- a/client/modules/HN.py +++ b/client/modules/HN.py @@ -108,7 +108,7 @@ def handle(text, mic, profile): else: mic.say("OK I will not send any articles") - if profile['phone_number']: + if not profile['prefers_email'] and profile['phone_number']: mic.say("Here are some front-page articles. " + all_titles + ". Would you like me to send you these? If so, which?") handleResponse(mic.activeListen()) diff --git a/client/modules/Weather.py b/client/modules/Weather.py index 7bb86ec..ad1ac29 100644 --- a/client/modules/Weather.py +++ b/client/modules/Weather.py @@ -56,7 +56,7 @@ def handle(text, mic, profile): tz = getTimezone(profile) service = DateService(tz=tz) - date = service.parseDay(text) + date = service.extractDay(text) if not date: date = datetime.datetime.now(tz=tz) weekday = service.__daysOfWeek__[date.weekday()] |
