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
8360ae92
Commit
8360ae92
authored
Feb 05, 2021
by
李小芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_highlight_v2
parent
cfe9b5fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
transfer.py
data_sync/tractate/transfer.py
+6
-4
tractate.py
talos/models/tractate/tractate.py
+1
-0
No files found.
data_sync/tractate/transfer.py
View file @
8360ae92
...
...
@@ -203,7 +203,7 @@ def get_tractate(pks):
# item["is_need_guarantee"] = False
# 过滤标签
filter_tags_names
=
[
"斩男心机妆"
,
"今日look打卡"
,
"少女心未泯"
,
"颜值高光时刻"
,
"美妆"
,
"Get漫画迷人眼"
,
"最显白口红推荐"
,
"口红试色"
,
"穿搭技巧"
,
"眼妆教程"
,
"腮红"
,
"氧气笑容练成记"
,
"口红试色"
,
"假体隆胸"
,
"自体脂肪隆胸"
,
"胶原蛋白填充隆胸"
,
"玻尿酸填充隆胸"
,
"胸部假体取出"
,
"眼妆教程"
,
"腮红"
,
"氧气笑容练成记"
,
"口红试色"
,
"假体隆胸"
,
"自体脂肪隆胸"
,
"胶原蛋白填充隆胸"
,
"玻尿酸填充隆胸"
,
"胸部假体取出"
,
"胸部失败修复"
,
"胸部下垂矫正"
,
"胸部修复"
,
"胸形美化"
,
"丰胸(隆胸)"
,
"胸部塑身"
,
"玻尿酸隆胸"
,
"假体隆胸"
,
"胶原蛋白隆胸"
,
"埋线隆胸"
,
"自体脂肪隆胸"
,
"胸部注射物取出"
,
"胸部假体取出"
,
"胸部假体取出"
,
"胸部修复"
,
"脂肪胶隆胸"
,
"胸部整形"
,
"隆胸"
,
"胸部美化"
,
"缩胸"
,
"胸部提升"
,
"生胸毛"
,
"胸部护理"
,
"综合隆胸"
,
"植胸毛"
,
"胸部修复"
,
"隆胸修复"
,
"胸部护理"
,
"硅胶隆胸"
,
"胸部护理"
,
...
...
@@ -219,7 +219,7 @@ def get_tractate(pks):
"阴道紧缩"
,
"阴道成形"
,
"包皮手术"
,
"填充阴唇"
,
"阴蒂肥大整形"
,
"阴唇整形"
,
"私密其他项目"
,
"阴蒂提升"
,
"小阴唇整形"
,
"阴茎延长"
,
"阴茎增粗"
,
"女性私密"
,
"男性私密"
,
"切开缝合法缩紧阴道"
,
"激光紧缩阴道"
,
"女性私密保养品"
,
"女性私密处保养"
,
"D女郎缩阴产品"
,
"私密整形1"
,
"私处整形"
,
"激光脱比基尼部位"
,
"私密回春术"
,
"缩阴术"
,
"激光脱比基尼"
,
"缩阴"
,
"私处护理"
,
"私处紧致"
,
"私密超声提升."
,
"阴蒂整形"
,
"激光阴道紧缩术"
]
"阴蒂整形"
,
"激光阴道紧缩术"
]
operators_add_tags_names
=
list
()
operators_add_tags_names
=
get_tag_v3_names_by_tag_v3_ids
(
item
[
'operators_add_tags'
])
...
...
@@ -255,14 +255,16 @@ def get_tractate(pks):
tagv4
=
tractate
.
get_tractate_tagv4_names
(
tractate_id
=
tractate
.
id
)
if
tagv4
:
tags_info
=
tractate
.
get_om_tags_info
(
ids
=
tagv4
)
print
(
"tags_info"
,
tags_info
)
item
[
'selected_stars'
]
=
[]
item
[
'selected_internet_celebrity'
]
=
[]
all_tags
=
[]
for
tag
in
tags_info
:
all_tags
.
append
(
tag
.
get
(
"id"
,
None
))
if
tag
.
get
(
"tag_type"
,
0
)
==
TAG_TYPE
.
STAR
:
if
tag
.
get
(
"tag_type"
,
0
)
==
TAG_TYPE
.
STAR
:
item
[
'selected_stars'
]
.
append
(
tag
.
get
(
"name"
,
None
))
elif
tag
.
get
(
"tag_type"
,
0
)
==
TAG_TYPE
.
INFLUENCER
:
elif
tag
.
get
(
"tag_type"
,
0
)
==
TAG_TYPE
.
INFLUENCER
:
item
[
'selected_internet_celebrity'
]
.
append
(
tag
.
get
(
"name"
,
None
))
else
:
pass
...
...
talos/models/tractate/tractate.py
View file @
8360ae92
...
...
@@ -329,6 +329,7 @@ class Tractate(models.Model):
try
:
res_list
=
[]
result
=
r
[
'pims/catalog/usertags/ids2tag'
](
ids
=
ids
)
.
unwrap
()
print
(
"result"
,
result
)
res_list
=
result
.
get
(
"result"
,
[])
except
Exception
:
return
[]
...
...
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