Skip to content

Commit

Permalink
fix(dupes): fix duplicate file matching
Browse files Browse the repository at this point in the history
chore: remove constant newline printing in file matching
  • Loading branch information
Toby222 committed Aug 28, 2024
1 parent cb4798b commit 837bfcc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tagstudio/src/core/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -1080,25 +1080,22 @@ def refresh_dupe_files(self, results_filepath: str | Path):
)
)
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 = []
Expand Down

0 comments on commit 837bfcc

Please sign in to comment.