Commit 94fd6acc authored by lixiaofang's avatar lixiaofang

add

parent dc7d3c9c
......@@ -9,6 +9,7 @@ from libs.es import ESPerform
from libs.cache import redis_client
import json
import base64
import random
from associate.models import agile_tag
from associate.commons.commons import get_tips_suggest_list
from django.conf import settings
......@@ -29,7 +30,9 @@ class TagTransfer(object):
item_dict["id"] = getMd5Digest(str(name))
item_dict["ori_name"] = name
item_dict["is_online"] = results.get("is_online", None)
item_dict["results_num"] = QueryWordAttr.get_query_results_num(instance.agile_tag_id)
# item_dict["results_num"] = QueryWordAttr.get_query_results_num(instance.agile_tag_id)
random_num = random.randint(3000, 10000)
item_dict["results_num"] = random_num
item_dict["agile_tag_type"] = instance.agile_tag_type
item_dict["agile_tag_id"] = instance.agile_tag_id
item_dict["create_tag_type"] = results.get("create_tag_type", None)
......
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