Commit 6647a8a6 authored by lixiaofang's avatar lixiaofang

修改获取数据的大

parent 579a42a9
......@@ -33,11 +33,11 @@ def search_hotword(device_id=-1):
try:
all_tag_name_list = set()
# 获取搜索推荐热词
# results_registr_tag = RegisterShowTag.objects.filter(is_deleted=False, is_online=1).count()
results_registr_tag = RegisterShowTag.objects.filter(is_deleted=False, is_online=1).count()
# 获取符合条件的核心词
# results_tag = Tag.objects.filter(is_online=True, collection=1).count()
results_registr_tag = 25
# results_registr_tag = 25
results_tag = 10189849
tag_id = random.sample(range(1, results_registr_tag), 6)
......
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