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

change test file

parent 43ddeb63
......@@ -97,7 +97,6 @@ def tag_boost(cid_str, tag_list=[15,21,22,85,86]):
left_cids = list(set(left_cids))
right_cids = [i for i in cids if i not in left_cids]
tag_cids["right"] = right_cids
print(tag_cids)
tag_list.append("right")
sort_cids = []
n = 0
......@@ -119,11 +118,9 @@ def tag_boost(cid_str, tag_list=[15,21,22,85,86]):
for id in sort_cids:
if id not in news_ids:
news_ids.append(id)
print(tag_list)
print(news_ids)
print(len(news_ids))
print(len(cids))
return news_ids
new_str = ",".join([str(i) for i in news_ids])
return new_str
else:
......
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