Commit da5fe916 authored by 张彦钊's avatar 张彦钊

change test file

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