edgeupdate

This commit is contained in:
2022-12-14 15:42:19 +08:00
parent 965097b20b
commit 2d9e09785d
2 changed files with 4 additions and 1 deletions

BIN
utils/.updateObs.py.swp Normal file

Binary file not shown.

View File

@ -17,7 +17,7 @@ def AddObs(file_path, status):
with lock:
if not cfg.flag:
addobs(file_path, status)
os.remove(file_path)
#os.remove(file_path)
else:
if status == '02':
addobs(file_path, status)
@ -41,6 +41,9 @@ def addobs(file_path, status): #save videos
break
else:
break
if not 'data' in status:
os.remove(file_path)
return None
status = status['data']
objectkey = os.path.basename(file_path)
backups_path = os.sep.join([cfg.backups, status+'_'+objectkey])