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