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)