Skip to content

Commit

Permalink
no need for this to be relative to location other than removing repea…
Browse files Browse the repository at this point in the history
…ted text in the database

Location is really more so the library knows where to look for files
  • Loading branch information
Loran425 committed May 23, 2024
1 parent ff52ded commit f97b444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tagstudio/src/core/sql_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def __init__(self, entry_id: int, path: Path, location: Location) -> None:
# Required Fields ======================================================
self.entry_id = entry_id
self.location = location # TODO: replace int
self.path = path.relative_to(location.path)
self.path = path
self.hash = self.update_hash()
self._attributes: Optional[dict[int, str | float | datetime | list[int]]] = None

Expand Down

0 comments on commit f97b444

Please sign in to comment.