Skip to content

Commit 561cf14

Browse files
committed
DBC22-6990: removed update for modified_at when to delete the record 2
1 parent dbdb633 commit 561cf14

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/backend/apps/webcam/tasks.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,6 @@ def purge_old_pvc_images(age: str = "24"):
361361
logging.exception(f"Error deleting file {file_path}: {e}")
362362

363363
# Delete all records if all images paths are NULL
364-
# ImageIndex.objects.filter(
365-
# timestamp__in=ids_to_delete,
366-
# ).delete()
367364
ImageIndex.objects.filter(pk__in=ids_to_delete).delete()
368365

369366
logger.info("All purged recordes are deleted successfully.")

0 commit comments

Comments
 (0)