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

delete prints

parent 1e784e5a
...@@ -229,13 +229,14 @@ if __name__ == "__main__": ...@@ -229,13 +229,14 @@ if __name__ == "__main__":
total_video_id = get_video_id() total_video_id = get_video_id()
device_city_list = get_active_users() device_city_list = get_active_users()
total_number += len(device_city_list) total_number += len(device_city_list)
print("累计预测用户总数:{}".format(total_number))
if device_city_list != []: if device_city_list != []:
for device_city in device_city_list: for device_city in device_city_list:
start = time.time() start = time.time()
multi_proecess_update(device_city[0], device_city[1], data_set_cid, total_video_id) multi_proecess_update(device_city[0], device_city[1], data_set_cid, total_video_id)
end = time.time() end = time.time()
print("更新该用户队列耗时{}秒".format((end - start))) print("更新该用户队列耗时{}秒".format((end - start)))
print("累计预测用户总数:{}".format(total_number))
......
...@@ -28,6 +28,7 @@ def get_active_users(): ...@@ -28,6 +28,7 @@ def get_active_users():
df = df.loc[df["device_id"].isin(old_device_id_list)] df = df.loc[df["device_id"].isin(old_device_id_list)]
if df.empty: if df.empty:
print("该列表是新用户,不需要预测") print("该列表是新用户,不需要预测")
time.sleep(56)
return [] return []
else: else:
# TODO 正式上线后注释下面的只预测尾号是6的代码 # TODO 正式上线后注释下面的只预测尾号是6的代码
......
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