Commit 9451a02a authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

Change tag calculations

parent 5cd570e6
......@@ -26,7 +26,7 @@ class MLDataMaker:
for i in tag:
if i.lower() in news_tag.lower():
count += 1
if count == 0 or count < len(tag) // 2 + 1:
if count == 0 or count < (len(tag) // 2 + 1):
return False
else:
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