Skip to content

Commit

Permalink
Fix refresh_dupe_files issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Icosahunter committed May 26, 2024
1 parent a69914d commit ecf71e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tagstudio/src/core/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,14 +1022,14 @@ def merge_dupe_entries(self):
self.entries = unique
self._map_filenames_to_entry_ids()

def refresh_dupe_files(self, results_filepath):
def refresh_dupe_files(self, results_filepath: str|Path):
"""
Refreshes the list of duplicate files.
A duplicate file is defined as an identical or near-identical file as determined
by a DupeGuru results file.
"""
full_results_path = Path(results_path)
if self.library_dir not in results_filepath.parents:
full_results_path: Path = Path(results_filepath)
if self.library_dir not in full_results_path.parents:
full_results_path = self.library_dir / full_results_path

if full_results_path.is_file():
Expand Down

0 comments on commit ecf71e9

Please sign in to comment.