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:
|
||||
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])
|
||||
|
Reference in New Issue
Block a user