File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -273,6 +273,8 @@ def delete_group_hashes(
273273 #
274274 # If we delete the metadata first, we will not need to update the columns before deleting them.
275275 GroupHashMetadata .objects .filter (grouphash_id__in = hash_ids ).delete ()
276+ if options .get ("deletions.group-hashes.delete-seer-matched-hashes" ):
277+ GroupHashMetadata .objects .filter (seer_matched_grouphash_id__in = hash_ids ).delete ()
276278 GroupHash .objects .filter (id__in = hash_ids ).delete ()
277279
278280 iterations += 1
Original file line number Diff line number Diff line change 342342 type = Int ,
343343 flags = FLAG_AUTOMATOR_MODIFIABLE ,
344344)
345+ register (
346+ "deletions.group-hashes.delete-seer-matched-hashes" ,
347+ default = True ,
348+ type = Bool ,
349+ flags = FLAG_AUTOMATOR_MODIFIABLE ,
350+ )
345351
346352register (
347353 "deletions.group-history.use-bulk-deletion" ,
You can’t perform that action at this time.
0 commit comments