Commit 4422935a authored by 张彦钊's avatar 张彦钊

change test file

parent da5fe916
......@@ -44,7 +44,7 @@ def get_user_profile(device_id,top_k = 5):
tags = []
if len(tag_sort) > top_k:
for i in range(top_k):
tags.append(tag_sort[0][0])
tags.append(tag_sort[i][0])
else:
for i in tag_sort:
tags.append(i)
......
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