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

change test file

parent 9c28b856
......@@ -90,7 +90,7 @@ def get_queues(device_id,city_id):
def tag_boost(cid_str, tag_list):
if cid_str is not None and cid_str != "":
if cid_str is not None and cid_str != "" and len(tag_list) != 0:
cids = cid_str.split(",")
try:
if len(cids) > 6 and len(tag_list) > 0:
......@@ -196,7 +196,7 @@ if __name__ == "__main__":
for uid_city in child_users_list:
tag_list = get_user_profile(uid_city[0])
queues = get_queues(uid_city[0], uid_city[1])
if len(queues) > 0 and len(tag_list) > 0:
if len(queues) > 0:
new_native = tag_boost(queues[0], tag_list)
new_nearby = tag_boost(queues[1], tag_list)
......
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