Commit bceffa48 authored by Francesco Poldi's avatar Francesco Poldi

Fix tweet object

parent 8040fed6
...@@ -69,9 +69,6 @@ def _output(obj, output, config, **extra): ...@@ -69,9 +69,6 @@ def _output(obj, output, config, **extra):
panda.update(follow_object, config.Essid) panda.update(follow_object, config.Essid)
if config.Elasticsearch: if config.Elasticsearch:
print("", end=".", flush=True) print("", end=".", flush=True)
else:
if config.Store_object:
tweets_object.append(obj)
else: else:
if not config.Hide_output: if not config.Hide_output:
try: try:
...@@ -96,6 +93,9 @@ async def checkData(tweet, location, config, conn): ...@@ -96,6 +93,9 @@ async def checkData(tweet, location, config, conn):
if config.Pandas: if config.Pandas:
panda.update(tweet, config) panda.update(tweet, config)
if config.Store_object:
tweets_object.append(tweet)
if config.Elasticsearch: if config.Elasticsearch:
elasticsearch.Tweet(tweet, config) elasticsearch.Tweet(tweet, config)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment