Commit c65c19d9 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team
Browse files

modules/vidjil_utils.py: rewording

parent b1851b27
...@@ -72,9 +72,9 @@ def filter(str, filter_str): ...@@ -72,9 +72,9 @@ def filter(str, filter_str):
for f in filter_list : for f in filter_list :
if len(f) > 0 and f[0] == "-" : if len(f) > 0 and f[0] == "-" :
if str.lower().find(f[1:].lower()) != -1 : if f[1:].lower() in str.lower():
return False return False
else : else :
if str.lower().find(f.lower()) == -1 : if f.lower() not in str.lower():
return False return False
return True return True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment