Commit ebf9dc52 authored by 李小芳's avatar 李小芳

Merge branch 'del_serven' into 'master'

去掉搜索数小于7的词

See merge request !63
parents 68bd34c0 3d06f3c4
......@@ -180,9 +180,8 @@ class QueryWordAttr(object):
def get_search_query_results_num(cls, name):
try:
total_num = 0
data = StrategyHistoryQueryWords.objects.filter(keyword=name, search_num__lte=7).values("answer_num",
"tractate_num",
"diary_num").first()
data = StrategyHistoryQueryWords.objects.filter(keyword=name).values("answer_num", "tractate_num",
"diary_num").first()
if data:
for value in data.values():
......
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