Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpha
physical
Commits
72d9423b
Commit
72d9423b
authored
Mar 22, 2019
by
zhanglu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
帖子
parent
49f024c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
topic_transfer.py
trans2es/utils/topic_transfer.py
+14
-0
No files found.
trans2es/utils/topic_transfer.py
View file @
72d9423b
...
...
@@ -78,6 +78,20 @@ class TopicTransfer(object):
# else:
# res["language_type"] = instance.language_type
res
[
"is_shadow"
]
=
instance
.
is_shadow
res
[
"is_recommend"
]
=
True
if
instance
.
is_recommend
else
False
res
[
"is_complaint"
]
=
instance
.
is_complaint
res
[
"virtual_content_level"
]
=
instance
.
virtual_content_level
res
[
"like_num_crawl"
]
=
instance
.
like_num_crawl
res
[
"comment_num_crawl"
]
=
instance
.
comment_num_crawl
res
[
"is_crawl"
]
=
instance
.
is_crawl
res
[
"platform"
]
=
instance
.
platform
res
[
"platform_id"
]
=
instance
.
platform_id
res
[
"drop_score"
]
=
instance
.
drop_score
res
[
"sort_score"
]
=
instance
.
sort_score
create_time
=
instance
.
create_time
tzlc_create_time
=
tzlc
(
create_time
)
...
...
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