mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 20:53:13 -06:00
Fixed an exception where mention to all checkbox was not being shown
This commit is contained in:
parent
9bbe325517
commit
d076ed1f56
@ -69,7 +69,7 @@ def is_geocoded(tweet):
|
|||||||
def get_all_mentioned(tweet, conf):
|
def get_all_mentioned(tweet, conf):
|
||||||
""" Gets all users that has been mentioned."""
|
""" Gets all users that has been mentioned."""
|
||||||
string = []
|
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["screen_name"] != conf["user_name"] and i["screen_name"] != tweet["user"]["screen_name"]:
|
||||||
if i["id"] not in string:
|
if i["id"] not in string:
|
||||||
string.append(i["id_str"])
|
string.append(i["id_str"])
|
||||||
|
Loading…
Reference in New Issue
Block a user