Commit 835e019f authored by lixiaofang's avatar lixiaofang

add query

parent 8f630226
......@@ -157,14 +157,12 @@ def pictorial_topic(topic_id=-1, offset=0, size=10):
}
q["_source"] = {
"include": ["id", "tag_id"]
}
"include": ["id", "tag_id"]}
q["sort"] = {
'update_time': {
'order': 'desc'
}
}
} }
q["form"] = 0
q["size"] = 10
......@@ -176,11 +174,10 @@ def pictorial_topic(topic_id=-1, offset=0, size=10):
return {"pictorial_ids_list": pictorial_id_list}
else:
return {"pictorial_ids_list": pictorial_id_list}
else:
return {"pictorial_ids_list": pictorial_id_list}
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
return {"pictorial_ids_list": []}
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
return {"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