summaryrefslogtreecommitdiff
path: root/client/modules/HN.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-05-10 16:45:21 -0400
committerschneefux <schneefux+commit@schneefux.xyz>2014-05-10 16:45:21 -0400
commit65de503d93b61b7131966e99ff474c7dd6d174f6 (patch)
treee057941d8bce504c9e2b51ab45c01b0ffbffbab4 /client/modules/HN.py
parentb4dffa756e1a5d78bc969f516be97e37a9c43c19 (diff)
downloadjasper-client-65de503d93b61b7131966e99ff474c7dd6d174f6.tar.gz
jasper-client-65de503d93b61b7131966e99ff474c7dd6d174f6.zip
Populate now adds keys (with empty values) for empty input (easier to handle in modules)
Diffstat (limited to 'client/modules/HN.py')
-rw-r--r--client/modules/HN.py2
1 files changed, 1 insertions, 1 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())