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
069a3683
Commit
069a3683
authored
Aug 10, 2017
by
Vasyl Bodnaruk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix update tags functional
parent
37306fd4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
esi_news_classification
exa/exa/esi_news_classification
+1
-1
update.py
exa/update.py
+3
-1
No files found.
esi_news_classification
@
5a0d58c6
Subproject commit
a50a79e678e04e9fc35bc3dc668acc81570d9075
Subproject commit
5a0d58c6b23acaea15224ba0091134fc71bf82f7
exa/update.py
View file @
069a3683
...
...
@@ -38,7 +38,9 @@ class NewsUpdater:
try
:
text
=
self
.
load_text
(
i
[
1
])
tags
=
self
.
get_tags
(
text
)
self
.
update_news
(
'update wp_esi_news_accept set tags_id="
%
s" where id=
%
s'
,
(
tags
,
i
[
0
]))
if
len
(
tags
)
==
0
:
tags
=
None
self
.
update_news
(
'update wp_esi_news_accept set tags_id=
%
s where id=
%
s'
,
(
tags
,
i
[
0
]))
print
(
'News id={} was updated'
.
format
(
i
[
0
]))
except
BaseException
as
e
:
print
(
e
.
with_traceback
())
...
...
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