edgeupdate
This commit is contained in:
BIN
utils/.updateObs.py.swp
Normal file
BIN
utils/.updateObs.py.swp
Normal file
Binary file not shown.
@ -17,7 +17,7 @@ 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)
|
||||||
else:
|
else:
|
||||||
if status == '02':
|
if status == '02':
|
||||||
addobs(file_path, status)
|
addobs(file_path, status)
|
||||||
@ -41,6 +41,9 @@ def addobs(file_path, status): #save videos
|
|||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
if not 'data' in status:
|
||||||
|
os.remove(file_path)
|
||||||
|
return None
|
||||||
status = status['data']
|
status = status['data']
|
||||||
objectkey = os.path.basename(file_path)
|
objectkey = os.path.basename(file_path)
|
||||||
backups_path = os.sep.join([cfg.backups, status+'_'+objectkey])
|
backups_path = os.sep.join([cfg.backups, status+'_'+objectkey])
|
||||||
|
Reference in New Issue
Block a user