From d8ef54392b44ff981bbd67d13258df214fb0882c Mon Sep 17 00:00:00 2001 From: Tobias Berger Date: Sat, 31 Aug 2024 21:42:19 +0200 Subject: [PATCH] fix(dupes): fix duplicate file matching (#410) chore: remove constant newline printing in file matching --- tagstudio/src/core/library.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tagstudio/src/core/library.py b/tagstudio/src/core/library.py index 7eedb8b8..c6c97bd2 100644 --- a/tagstudio/src/core/library.py +++ b/tagstudio/src/core/library.py @@ -1080,25 +1080,22 @@ class Library: ) ) for match in matches: - # print(f'MATCHED ({match[2]}%): \n {files[match[0]]} \n-> {files[match[1]]}') file_1 = files[match[0]].relative_to(self.library_dir) file_2 = files[match[1]].relative_to(self.library_dir) if ( - file_1.resolve in self.filename_to_entry_id_map.keys() + file_1 in self.filename_to_entry_id_map.keys() and file_2 in self.filename_to_entry_id_map.keys() ): self.dupe_files.append( (files[match[0]], files[match[1]], match[2]) ) - print("") for dupe in self.dupe_files: print( f"[LIBRARY] MATCHED ({dupe[2]}%): \n {dupe[0]} \n-> {dupe[1]}", end="\n", ) - # self.dupe_files.append(full_path) def remove_missing_files(self): deleted = []