Commit b087bec5 authored by shadMod's avatar shadMod 💬

replaced ignore_lts and ignore_interim with ignore_version

parent 02b48162
......@@ -23,10 +23,9 @@ from urllib.error import HTTPError
class UbuntuRelease:
def __init__(self, path_url=None, ignore_lts=None, ignore_interim=None):
def __init__(self, path_url=None, ignore_version=None):
self.path_url = path_url
self.ignore_lts = ignore_lts
self.ignore_interim = ignore_interim
self.ignore_version = ignore_version
def get_table_rows(self, only_data: bool = True):
"""
......@@ -89,10 +88,7 @@ class CompileVersion:
:param path_url: url to get version list
:param path_out: path where the toml file will be written
:param constants: constants path
:param ignore_interim: list of tags of interim versions to be ignored
:param ignore_lts: list of tags of lts versions to be ignored
N.B.: 'interim' === 'latest'
:param ignore_version: list of tags versions to be ignored
"""
ARM64 = ["live-server"]
......@@ -105,19 +101,16 @@ class CompileVersion:
path_url: str = "https://releases.ubuntu.com/",
path_out: str = "../../data/downloads.toml",
constants: str = "./assets/costants.json",
ignore_interim: list = None,
ignore_lts: list = None,
ignore_version: list = None,
):
self.path_url = path_url
self.path_out = path_out
self.constants = constants
self.ignore_interim = ignore_interim if ignore_interim else []
self.ignore_lts = ignore_lts if ignore_lts else []
self.ignore_version = ignore_version if ignore_version else []
self.list_version = UbuntuRelease(
path_url=self.path_url,
ignore_lts=self.ignore_lts,
ignore_interim=self.ignore_interim,
ignore_version=self.ignore_version,
).get_list_version
@property
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment