Commit 02b10027 authored by 赵威's avatar 赵威

add printer

parent 328dd6a1
...@@ -25,9 +25,9 @@ def user_portrait_scan_info(device_dict, diary_dict, predict_fn): ...@@ -25,9 +25,9 @@ def user_portrait_scan_info(device_dict, diary_dict, predict_fn):
device_id = key.split(":")[-1] device_id = key.split(":")[-1]
if (user_portrait_tag3_get_candidate_dict(device_id, "diary")): if (user_portrait_tag3_get_candidate_dict(device_id, "diary")):
offline_predict(device_id, device_dict, diary_dict, predict_fn)
all_count += 1 all_count += 1
print(str(all_count) + ": " + device_id)
offline_predict(device_id, device_dict, diary_dict, predict_fn)
print("all count: " + str(all_count)) print("all count: " + str(all_count))
print("scan done " + str(datetime.datetime.now())) print("scan done " + str(datetime.datetime.now()))
...@@ -36,7 +36,6 @@ def user_portrait_scan_info(device_dict, diary_dict, predict_fn): ...@@ -36,7 +36,6 @@ def user_portrait_scan_info(device_dict, diary_dict, predict_fn):
def offline_predict(device_id, device_dict, diary_dict, predict_fn): def offline_predict(device_id, device_dict, diary_dict, predict_fn):
print(device_id)
diary_ids = user_portrait_tag3_get_candidate_unread_list(device_id, "diary") diary_ids = user_portrait_tag3_get_candidate_unread_list(device_id, "diary")
print("diary_ids: " + str(len(diary_ids))) print("diary_ids: " + str(len(diary_ids)))
# print(diary_ids[:10]) # print(diary_ids[:10])
......
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