mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2024-07-30 21:27:34 +00:00
Merge pull request #89 from yedpodtrzitko/main
fix: strip leading slash in library items
This commit is contained in:
commit
93177dd696
1 changed files with 1 additions and 1 deletions
|
@ -808,7 +808,7 @@ class Library:
|
|||
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."""
|
||||
|
|
Loading…
Reference in a new issue