From affd25379ab1bf00068d3d45b5a5bf2ae6298759 Mon Sep 17 00:00:00 2001 From: andrewso <9V5f1FkzI2LD> Date: Thu, 15 Oct 2020 14:01:06 +0100 Subject: [PATCH] [15.10.20] Testing --- src/tweets/collector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tweets/collector.py b/src/tweets/collector.py index 2e855b4..047e95f 100644 --- a/src/tweets/collector.py +++ b/src/tweets/collector.py @@ -143,7 +143,7 @@ def processTweet(): pos, neu, neg, compound = callSentimentAnalyser(cleanedTweet) - if compound != 0.0 or neu <= 0.6: + if compound != 0.0 and neu <= 0.6: hourTweet = {'pos': pos, 'neu': neu, 'neg': neg, 'compound': compound, 'type': tweet["type"]} hourStack.append(hourTweet)