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/app_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/modules/app_utils.py') diff --git a/client/modules/app_utils.py b/client/modules/app_utils.py index 7e39cbf..68cce38 100644 --- a/client/modules/app_utils.py +++ b/client/modules/app_utils.py @@ -120,4 +120,4 @@ def isPositive(phrase): Arguments: phrase -- the input phrase to-be evaluated """ - return re.search(r'\b(sure|yes|yeah|go)\b', phrase, re.IGNORECASE) + return bool(re.search(r'\b(sure|yes|yeah|go)\b', phrase, re.IGNORECASE)) -- cgit v1.3.1