edgeUpdate

This commit is contained in:
2023-01-06 15:52:01 +08:00
parent 5d7a5db456
commit 6f54185359

View File

@ -27,14 +27,14 @@ def AddObs(file_path, status):
shutil.move(file_path, f_dst)
def addobs(file_path, status): #save videos
ti.sleep(5)
ti.sleep(1)
videoUuid = os.path.basename(file_path).split('_')[1]
json_data = {'videoUuid': videoUuid}
for vre in [cfg.VreTest, cfg.VreTest2, cfg.Vre]:
resp = requests.post(url=vre, data=json_data)
status = resp.json()
if not 'data' in status:#延迟设置
ti.sleep(15)
ti.sleep(2)
resp = requests.post(url=vre, data=json_data)
status = resp.json()
if 'data' in status: