Skip to content

Commit f490efa

Browse files
committed
set().union(* is usually what my intent
1 parent fed20ad commit f490efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xklb/media/dedupe.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def get_fs_duplicates(args) -> List[dict]:
394394
sample_hash_groups[m["hash"]].add(m['path'])
395395
sample_hash_groups = [l for l in sample_hash_groups.values() if len(l) > 1]
396396

397-
sample_hash_paths = set.intersection(*sample_hash_groups)
397+
sample_hash_paths = set().union(*sample_hash_groups)
398398
log.info(
399399
"Got %s sample-hash duplicates (%s groups). Doing full hash comparison...",
400400
len(sample_hash_paths),

0 commit comments

Comments
 (0)