mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06: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):
|
||||
return False
|
||||
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
|
||||
elif settings["filters"][i]["in_lang"] == "False":
|
||||
if tweet.lang in settings["filters"][i]["languages"]:
|
||||
|
Loading…
Reference in New Issue
Block a user