Skip to content

Commit

Permalink
Merge pull request #89 from yedpodtrzitko/main
Browse files Browse the repository at this point in the history
fix: strip leading slash in library items
  • Loading branch information
CyanVoxel authored Apr 29, 2024
2 parents c9c399f + d8a11a7 commit 93177dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tagstudio/src/core/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ def _map_filenames_to_entry_ids(self):
f'{entry.path}/{entry.filename}')).lower().lstrip('\\').lstrip('/')] = entry.id
else:
self.filename_to_entry_id_map[str(
os.path.normpath(f'{entry.path}/{entry.filename}'))] = entry.id
os.path.normpath(f'{entry.path}/{entry.filename}')).lstrip('/')] = entry.id

# def _map_filenames_to_entry_ids(self):
# """Maps the file paths of entries to their index in the library list."""
Expand Down

0 comments on commit 93177dd

Please sign in to comment.