Commit 39ff59d0 authored by Francesco Poldi's avatar Francesco Poldi

Fix

parent e7dc8622
...@@ -91,14 +91,14 @@ def update(object, config): ...@@ -91,14 +91,14 @@ def update(object, config):
"search": str(config.Search), "search": str(config.Search),
"near": config.Near "near": config.Near
} }
if t.retweet: if Tweet.retweet:
_data.update({"user_rt_id": t.user_rt_id}) _data.update({"user_rt_id": Tweet.user_rt_id})
try: try:
_data.update({"near": t.near}) _data.update({"near": Tweet.near})
except AttributeError: except AttributeError:
pass pass
try: try:
_data.update({"geo": t.geo}) _data.update({"geo": Tweet.geo})
except AttributeError: except AttributeError:
pass pass
_object_blocks[_type].append(_data) _object_blocks[_type].append(_data)
......
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