clean: rename bulk

This commit is contained in:
2025-05-06 22:54:18 +02:00
parent 129dfe7df9
commit 6d1661131f
8 changed files with 27 additions and 27 deletions

View File

@ -10,11 +10,11 @@ from typing import TYPE_CHECKING
import config
if TYPE_CHECKING:
from page import Page
from album import Album
from bulk_page import BulkPage
from bulk_album import Album
class Picture():
def __init__(self, picture_path: Path, id: int, page = None, raw: Path|None = None, is_repertoried: bool = True):
def __init__(self, picture_path: Path, id: int, page: BulkPage = 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")
@ -22,7 +22,7 @@ class Picture():
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._page: BulkPage = page
self._albums_name: list[str] = []
self.albums: list[Album] = []
if self._albums_file.exist():