edgeUpdate

This commit is contained in:
2023-01-16 11:32:09 +08:00
parent 6f54185359
commit 931445efdd

View File

@ -14,7 +14,7 @@ obsClient = ObsClient(
bucketName = 'ieemoo-ai' bucketName = 'ieemoo-ai'
def AddObs(file_path, status): def AddObs(file_path, status):
with lock: #with lock:
if not cfg.flag: if not cfg.flag:
addobs(file_path, status) addobs(file_path, status)
#os.remove(file_path) #os.remove(file_path)
@ -34,7 +34,7 @@ def addobs(file_path, status): #save videos
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(2) ti.sleep(1)
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: