mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-09 23:05:43 +03:00
Don't remove none directory for classes
This commit is contained in:
parent
17ac273b90
commit
406382124a
@ -710,7 +710,7 @@ def delete_classification_dataset_images(
|
||||
if os.path.isfile(file_path):
|
||||
os.unlink(file_path)
|
||||
|
||||
if os.path.exists(folder) and not os.listdir(folder):
|
||||
if os.path.exists(folder) and not os.listdir(folder) and category.lower() != "none":
|
||||
os.rmdir(folder)
|
||||
|
||||
return JSONResponse(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user