[10.10.20] clearing stacks
This commit is contained in:
parent
06c95da108
commit
a65be3b9be
@ -95,7 +95,7 @@ class Listener(StreamListener):
|
|||||||
if 'extended_tweet' in data:
|
if 'extended_tweet' in data:
|
||||||
# If tweet is over 140 word limit
|
# If tweet is over 140 word limit
|
||||||
text = data['extended_tweet']['full_text']
|
text = data['extended_tweet']['full_text']
|
||||||
self.processTweet(text)
|
dumpStack.append(text)
|
||||||
|
|
||||||
def processTweet():
|
def processTweet():
|
||||||
|
|
||||||
@ -168,6 +168,7 @@ def createHourJob():
|
|||||||
compound = round(ovCompound/len(hourStack), 3)
|
compound = round(ovCompound/len(hourStack), 3)
|
||||||
|
|
||||||
hourStack.clear()
|
hourStack.clear()
|
||||||
|
dumpStack.clear()
|
||||||
|
|
||||||
sendToArtemis(pos, neu, neg, compound)
|
sendToArtemis(pos, neu, neg, compound)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user