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

把没有用户画像的用户日记队列也写到数据库

parent bcea66b4
......@@ -87,7 +87,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:
......@@ -183,7 +183,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