Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
esi-table-data
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esi-data-scrapping
esi-table-data
Commits
8e7cd1d8
Commit
8e7cd1d8
authored
Aug 17, 2017
by
Vasyl Bodnaruk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace list on MLData
parent
f07f6264
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
utilits.py
exa/exa/helpers/utilits.py
+5
-2
No files found.
exa/exa/helpers/utilits.py
View file @
8e7cd1d8
...
@@ -34,5 +34,8 @@ class MLDataMaker:
...
@@ -34,5 +34,8 @@ class MLDataMaker:
for
news_tag
in
news
.
tags
.
split
(
','
):
for
news_tag
in
news
.
tags
.
split
(
','
):
for
i
in
self
.
tags
:
for
i
in
self
.
tags
:
if
self
.
is_tag_similar
(
i
.
tags
,
news_tag
):
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
return
ml_data
else
:
return
None
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment