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

fix no user print content

parent e1669e29
......@@ -94,7 +94,6 @@ if __name__ == "__main__":
start = time.time()
empty,device_id_list = get_active_users()
if empty:
print("当前没有活跃用户,不需要预测")
time.sleep(60)
else:
for device_id in device_id_list:
......
......@@ -11,7 +11,7 @@ def get_active_users():
"where active_time <= '{}' and active_time >= '{}'".format(now_end,now_start)
device_id_df = con_sql(sql)
if device_id_df.empty:
print("当下这一分钟没有活跃用户")
print("当下这一分钟没有活跃用户,不需要预测")
return True,None
else:
device_id_list = device_id_df[0].values.tolist()
......
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