Commit 69b4b06d authored by lixiaofang's avatar lixiaofang

add

parent c507edbd
......@@ -41,7 +41,7 @@ def search_hotword(device_id=-1):
for item in results_registr_tag:
for word in item.split():
tag_val_list.add(word)
tag_id_list = random.sample(range(0, len(tag_val_list)), 6)
tag_id_list = random.sample(range(0, len(tag_val_list)),1)
for tag_id in tag_id_list:
tag_val = list(tag_val_list)[tag_id]
all_tag_name_list.add(tag_val)
......
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