Commit 2e4fc7e6 authored by lixiaofang's avatar lixiaofang

add pictorial

parent 46827cd1
...@@ -218,11 +218,16 @@ def pictorial_topic_sort(pictorial_id=-1, offset=0, size=10): ...@@ -218,11 +218,16 @@ def pictorial_topic_sort(pictorial_id=-1, offset=0, size=10):
q = { q = {
"query":{ "query":{
"term":{ "bool":{
"pictorial_id": pictorial_id} "must":[
{"term":{"pictorial_id": pictorial_id}},
{"term": {"is_online": True}},
{"term": {"is_deleted": False}},
]
}
}, },
"sort":{ "sort":{
"vote_num":{"order":"desc"} "total_vote_num":{"order":"desc"}
} }
} }
pict_pictorial_ids_list =[] pict_pictorial_ids_list =[]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment