Commit f51fbde1 authored by 段英荣's avatar 段英荣

modify

parent 1ea8697d
...@@ -105,8 +105,26 @@ def pictorial_topic(topic_id=-1, offset=0, size=10): ...@@ -105,8 +105,26 @@ def pictorial_topic(topic_id=-1, offset=0, size=10):
q = {} q = {}
# 获取帖子从属的画报 # 获取帖子从属的画报
q["query"] = { q["query"] = {
"term": { "bool":{
"id": topic_id "must":[
{
"term": {
"id": topic_id
}
},
{
"term":{
"is_online":True
}
}
],
"must_not":[
{
"term":{
"is_history":True
}
}
]
} }
} }
q["_source"] = { q["_source"] = {
......
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