add: hashtag to album page to go directly on the picture you clicked

This commit is contained in:
2025-05-06 22:42:22 +02:00
parent 5fc12d5d33
commit 129dfe7df9
4 changed files with 9 additions and 6 deletions

View File

@ -14,13 +14,14 @@ if TYPE_CHECKING:
from album import Album
class Picture():
def __init__(self, picture_path: Path, page = None, raw: Path|None = None, is_repertoried: bool = True):
def __init__(self, picture_path: Path, id: int, page = None, raw: Path|None = None, is_repertoried: bool = True):
self._large: Path = picture_path
self._small: Path = Path(picture_path.get_absolute_path()[:-4] + "_small.jpg")
self._thumb: Path = Path(picture_path.get_absolute_path()[:-4] + "_thumb.jpg")
self._profile_file: Path = Path(picture_path.get_absolute_path() + ".out.pp3")
self._albums_file: Path = Path(picture_path.get_absolute_path()[:-4] + "_albums.txt")
self._raw: Path|None = raw
self.id: int = id
self._page: Page = page
self._albums_name: list[str] = []
self.albums: list[Album] = []