Commit 8e7cd1d8 authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

Replace list on MLData

parent f07f6264
......@@ -34,5 +34,8 @@ class MLDataMaker:
for news_tag in news.tags.split(','):
for i in self.tags:
if self.is_tag_similar(i.tags, news_tag):
ml_data.append([news.id, i.id])
ml_data.append(MLData(news.id, i.id))
if len(ml_data) > 0:
return ml_data
else:
return None
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