drop architecture coz it is always same

This commit is contained in:
2021-03-13 17:12:36 +03:00
parent 4b98b21a70
commit 4727894349
5 changed files with 3 additions and 9 deletions

View File

@ -30,7 +30,7 @@ from ahriman.core.exceptions import DuplicateRun
class Lock:
def __init__(self, path: Optional[str], architecture: str, force: bool) -> None:
self.path: Optional[str] = f'{path}_{architecture}' if self.path is not None else None
self.path = f'{path}_{architecture}' if path is not None else None
self.force = force
def __enter__(self) -> Lock:

View File

@ -32,7 +32,6 @@ class HTML(Report):
def __init__(self, architecture: str, config: Configuration) -> None:
Report.__init__(self, architecture, config)
self.architecture = architecture
section = config.get_section_name('html', architecture)
self.report_path = config.get(section, 'path')
self.link_path = config.get(section, 'link_path')
@ -63,7 +62,6 @@ class HTML(Report):
comparator: Callable[[Dict[str, str]], str] = lambda item: item['filename']
html = template.render(
architecture=self.architecture,
homepage=self.homepage,
link_path=self.link_path,
has_package_signed=SignSettings.SignPackages in self.sign_targets,