mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-04-05 11:22:30 -04:00
Fixed small issue when attempting to apply filters by language
This commit is contained in:
parent
2c7eab60a8
commit
0e814a765a
@ -231,7 +231,7 @@ def filter_tweet(tweet, tweet_data, settings, buffer_name):
|
|||||||
if word not in getattr(tweet, value):
|
if word not in getattr(tweet, value):
|
||||||
return False
|
return False
|
||||||
if settings["filters"][i]["in_lang"] == "True":
|
if settings["filters"][i]["in_lang"] == "True":
|
||||||
if getattr(tweet, lang) not in settings["filters"][i]["languages"]:
|
if getattr(tweet, "lang") not in settings["filters"][i]["languages"]:
|
||||||
return False
|
return False
|
||||||
elif settings["filters"][i]["in_lang"] == "False":
|
elif settings["filters"][i]["in_lang"] == "False":
|
||||||
if tweet.lang in settings["filters"][i]["languages"]:
|
if tweet.lang in settings["filters"][i]["languages"]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user