Fixed an exception where mention to all checkbox was not being shown

This commit is contained in:
Manuel Cortez 2016-10-04 09:35:18 -05:00
parent 9bbe325517
commit d076ed1f56

View File

@ -69,7 +69,7 @@ def is_geocoded(tweet):
def get_all_mentioned(tweet, conf):
""" Gets all users that has been mentioned."""
string = []
for i in tweet["entities"]["user_mentions"][1:]:
for i in tweet["entities"]["user_mentions"]:
if i["screen_name"] != conf["user_name"] and i["screen_name"] != tweet["user"]["screen_name"]:
if i["id"] not in string:
string.append(i["id_str"])