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
505c7d5c
Commit
505c7d5c
authored
4 years ago
by
李小芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smr
parent
439efa3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
transfer.py
data_sync/answer/transfer.py
+6
-6
transfer.py
data_sync/tractate/transfer.py
+6
-6
No files found.
data_sync/answer/transfer.py
View file @
505c7d5c
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
data_sync/tractate/transfer.py
View file @
505c7d5c
...
...
@@ -239,12 +239,12 @@ 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
:
...
...
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