Commit 02b560da authored by 张彦钊's avatar 张彦钊

add note for test

parent 22e22503
...@@ -198,11 +198,12 @@ def router(device_id): ...@@ -198,11 +198,12 @@ def router(device_id):
if __name__ == "__main__": if __name__ == "__main__":
while True: while True:
start = time.time() start = time.time()
empty,device_id_list = get_active_users() get_active_users()
if empty==1: # empty,device_id_list = get_active_users()
time.sleep(60) # if empty==1:
else: # time.sleep(30)
print("有数据") # else:
# old_device_id_list = pd.read_csv(DIRECTORY_PATH + "data_set_device_id.csv")["device_id"].values.tolist() # old_device_id_list = pd.read_csv(DIRECTORY_PATH + "data_set_device_id.csv")["device_id"].values.tolist()
# for device_id in device_id_list: # for device_id in device_id_list:
# if device_id in old_device_id_list: # if device_id in old_device_id_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