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
dd1d42a8
Commit
dd1d42a8
authored
Jan 12, 2021
by
李小芳
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'operator_tag' into 'master'
Operator tag See merge request
!25
parents
4113e297
177623d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
transfer.py
data_sync/answer/transfer.py
+6
-6
transfer.py
data_sync/tractate/transfer.py
+7
-6
No files found.
data_sync/answer/transfer.py
View file @
dd1d42a8
...
...
@@ -200,12 +200,12 @@ def get_answers(pks):
item
[
'selected_stars'
]
=
[]
item
[
'selected_internet_celebrity'
]
=
[]
all_tags
=
[]
for
item
in
tags_info
:
all_tags
.
append
(
item
.
get
(
"id"
,
None
))
if
item
.
get
(
"tag_type"
,
0
)
==
TAG_TYPE
.
STAR
:
item
[
'selected_stars'
]
.
append
(
item
.
get
(
"name"
,
None
))
elif
item
.
get
(
"tag_type"
,
0
)
==
TAG_TYPE
.
INFLUENCER
:
item
[
'selected_internet_celebrity'
]
.
append
(
item
.
get
(
"name"
,
None
))
for
tag
in
tags_info
:
all_tags
.
append
(
tag
.
get
(
"id"
,
None
))
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
:
item
[
'selected_internet_celebrity'
]
.
append
(
tag
.
get
(
"name"
,
None
))
else
:
pass
if
15928
in
all_tags
:
...
...
data_sync/tractate/transfer.py
View file @
dd1d42a8
...
...
@@ -239,14 +239,15 @@ def get_tractate(pks):
item
[
'selected_stars'
]
=
[]
item
[
'selected_internet_celebrity'
]
=
[]
all_tags
=
[]
for
item
in
tags_info
:
all_tags
.
append
(
item
.
get
(
"id"
,
None
))
if
item
.
get
(
"tag_type"
,
0
)
==
TAG_TYPE
.
STAR
:
item
[
'selected_stars'
]
.
append
(
item
.
get
(
"name"
,
None
))
elif
item
.
get
(
"tag_type"
,
0
)
==
TAG_TYPE
.
INFLUENCER
:
item
[
'selected_internet_celebrity'
]
.
append
(
item
.
get
(
"name"
,
None
))
for
tag
in
tags_info
:
all_tags
.
append
(
tag
.
get
(
"id"
,
None
))
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
:
item
[
'selected_internet_celebrity'
]
.
append
(
tag
.
get
(
"name"
,
None
))
else
:
pass
if
15928
in
all_tags
:
item
[
'selected_content_type'
]
=
SELECTED_CONTENT_TYPE
.
BEAUTY_STAR
elif
10682
in
all_tags
:
...
...
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