Commit 5de78856 authored by Francesco Poldi's avatar Francesco Poldi

Workaround for Tweet.place not decoded #309

parent 108a8f90
......@@ -236,7 +236,9 @@ def Tweet(Tweet, config):
if _near:
j_data["_source"].update({"geo_near": _near})
if Tweet.place:
j_data["_source"].update({"geo_tweet": getLocation(Tweet.place)})
_t_place = getLocation(Tweet.place)
if _t_place:
j_data["_source"].update({"geo_tweet": getLocation(Tweet.place)})
actions.append(j_data)
es = Elasticsearch(config.Elasticsearch)
......
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