mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-07-23 02:39:57 +00:00
drop architecture coz it is always same
This commit is contained in:
@ -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:
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user