mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 20:53:13 -06:00
Fixed a typo in filter creation GUI #102
This commit is contained in:
parent
34e9b8b89f
commit
519d096f29
@ -149,10 +149,10 @@ def filter_tweet(tweet, settings, buffer_name):
|
|||||||
regexp = settings["filters"][i]["regexp"]
|
regexp = settings["filters"][i]["regexp"]
|
||||||
word = settings["filters"][i]["word"]
|
word = settings["filters"][i]["word"]
|
||||||
if word != "" and settings["filters"][i]["if_word_exists"]:
|
if word != "" and settings["filters"][i]["if_word_exists"]:
|
||||||
if word not in tweet[value]:
|
if word in tweet[value]:
|
||||||
return False
|
return False
|
||||||
elif word != "" and settings["filters"][i]["if_word_exists"] == False:
|
elif word != "" and settings["filters"][i]["if_word_exists"] == False:
|
||||||
if word in tweet[value]:
|
if word not in tweet[value]:
|
||||||
return False
|
return False
|
||||||
if settings["filters"][i]["in_lang"] == "True":
|
if settings["filters"][i]["in_lang"] == "True":
|
||||||
if tweet["lang"] not in settings["filters"][i]["languages"]:
|
if tweet["lang"] not in settings["filters"][i]["languages"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user