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
0b460fd5
Commit
0b460fd5
authored
6 years ago
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
37bf178f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
group.py
search/utils/group.py
+1
-2
group.py
search/views/group.py
+4
-3
No files found.
search/utils/group.py
View file @
0b460fd5
...
@@ -63,8 +63,7 @@ class GroupUtils(object):
...
@@ -63,8 +63,7 @@ class GroupUtils(object):
}
}
}
}
q
[
"sort"
]
=
[
q
[
"sort"
]
=
[
{
"high_quality_topic_num"
:{
"order"
:
"desc"
}},
{
"high_quality_topic_num"
:{
"order"
:
"desc"
}}
{
"create_time"
:{
"order"
:
"desc"
}}
]
]
q
[
"_source"
]
=
{
q
[
"_source"
]
=
{
"includes"
:[
"id"
]
"includes"
:[
"id"
]
...
...
This diff is collapsed.
Click to expand it.
search/views/group.py
View file @
0b460fd5
...
@@ -224,9 +224,10 @@ def pictorial_topic_sort(pictorial_id=-1, offset=0, size=10):
...
@@ -224,9 +224,10 @@ def pictorial_topic_sort(pictorial_id=-1, offset=0, size=10):
]
]
}
}
},
},
"sort"
:{
"sort"
:[
"total_vote_num"
:{
"order"
:
"desc"
}
{
"total_vote_num"
:{
"order"
:
"desc"
}},
}
{
"create_time"
:
{
"order"
:
"desc"
}}
]
}
}
pict_pictorial_ids_list
=
[]
pict_pictorial_ids_list
=
[]
# 获取es链接对象
# 获取es链接对象
...
...
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