Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
mentha
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
mentha
Commits
5fc9e94c
Commit
5fc9e94c
authored
4 years ago
by
李小芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_highlight_v2
parent
0bcdd7b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
transfer.py
data_sync/tractate/transfer.py
+1
-4
tractate.py
talos/models/tractate/tractate.py
+0
-1
No files found.
data_sync/tractate/transfer.py
View file @
5fc9e94c
...
@@ -255,8 +255,6 @@ def get_tractate(pks):
...
@@ -255,8 +255,6 @@ def get_tractate(pks):
tagv4
=
tractate
.
get_tractate_tagv4_names
(
tractate_id
=
tractate
.
id
)
tagv4
=
tractate
.
get_tractate_tagv4_names
(
tractate_id
=
tractate
.
id
)
if
tagv4
:
if
tagv4
:
tags_info
=
tractate
.
get_om_tags_info
(
ids
=
tagv4
)
tags_info
=
tractate
.
get_om_tags_info
(
ids
=
tagv4
)
print
(
"tags_info"
,
tags_info
)
item
[
'selected_stars'
]
=
[]
item
[
'selected_stars'
]
=
[]
item
[
'selected_internet_celebrity'
]
=
[]
item
[
'selected_internet_celebrity'
]
=
[]
all_tags
=
[]
all_tags
=
[]
...
@@ -298,9 +296,8 @@ def get_tractate(pks):
...
@@ -298,9 +296,8 @@ def get_tractate(pks):
# 新增V4社区运营标签
# 新增V4社区运营标签
item
[
"operate_tags_v4"
]
=
list
(
tagv4
)
item
[
"operate_tags_v4"
]
=
list
(
tagv4
)
data
.
append
(
item
)
data
.
append
(
item
)
#
logging.info("get data:%s" % data)
logging
.
info
(
"get data:
%
s"
%
data
)
return
data
return
data
except
:
except
:
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
...
...
This diff is collapsed.
Click to expand it.
talos/models/tractate/tractate.py
View file @
5fc9e94c
...
@@ -329,7 +329,6 @@ class Tractate(models.Model):
...
@@ -329,7 +329,6 @@ class Tractate(models.Model):
try
:
try
:
res_list
=
[]
res_list
=
[]
result
=
r
[
'pims/catalog/usertags/ids2tag'
](
ids
=
list
(
ids
))
.
unwrap
()
result
=
r
[
'pims/catalog/usertags/ids2tag'
](
ids
=
list
(
ids
))
.
unwrap
()
logging
.
info
(
"get result:
%
s"
,
result
)
res_list
=
result
.
get
(
"result"
,
[])
res_list
=
result
.
get
(
"result"
,
[])
except
:
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
...
...
This diff is collapsed.
Click to expand it.
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