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
79bbac1d
Commit
79bbac1d
authored
Mar 22, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
21b4e448
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
topic-high-star.json
trans2es/mapping/topic-high-star.json
+0
-0
type_info.py
trans2es/type_info.py
+3
-3
No files found.
trans2es/mapping/topic
_high_
star.json
→
trans2es/mapping/topic
-high-
star.json
View file @
79bbac1d
File moved
trans2es/type_info.py
View file @
79bbac1d
...
...
@@ -202,7 +202,7 @@ class TypeInfo(object):
es
=
es
,
)
# 同时写
3
星及以上的帖子
# 同时写
4
星及以上的帖子
if
len
(
topic_data_high_star_list
)
>
0
:
self
.
elasticsearch_bulk_insert_data
(
sub_index_name
=
"topic-high-star"
,
...
...
@@ -269,8 +269,8 @@ def get_type_info_map():
type_info_list
=
[
TypeInfo
(
name
=
'topic
_high_star'
,
# >=3
星日记
type
=
'topic
_high_
star'
,
name
=
'topic
-high-star'
,
# >=4
星日记
type
=
'topic
-high-
star'
,
model
=
topic
.
Topic
,
query_deferred
=
lambda
:
topic
.
Topic
.
objects
.
all
()
.
query
,
get_data_func
=
TopicTransfer
.
get_topic_data
,
...
...
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