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

modify

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