From ba59d05594aa13cf7bfd9a37d22e5465aeb5d5f0 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 31 Aug 2014 19:09:46 +0100 Subject: Fixed News Modules - Sending news by email --- client/modules/News.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/modules/News.py') diff --git a/client/modules/News.py b/client/modules/News.py index 59495a3..8b4b9a3 100644 --- a/client/modules/News.py +++ b/client/modules/News.py @@ -59,7 +59,7 @@ def handle(text, mic, profile): return [service.parse(w) for w in output] chosen_articles = extractOrdinals(text) - send_all = chosen_articles is [] and app_utils.isPositive(text) + send_all = not chosen_articles and app_utils.isPositive(text) if send_all or chosen_articles: mic.say("Sure, just give me a moment") -- cgit v1.3.1