Commit d5a1f850 authored by shadMod's avatar shadMod 💬

replaced ver_interim with ver_latest to get the latest version

now ver_interim_list and ver_lts_list get up all versions and take relative interim and LTS
parent 2de0af53
...@@ -131,20 +131,20 @@ class CompileVersion: ...@@ -131,20 +131,20 @@ class CompileVersion:
] ]
@property @property
def ver_lts(self) -> str: def ver_latest(self) -> tuple:
return max(self.ver_lts_list) return max(self.list_version)
@property @property
def ver_interim(self) -> str: def ver_latest_lts(self) -> tuple:
return max(self.ver_interim_list) return max(self.ver_lts_list)
@property @property
def ver_lts_list(self) -> list: def ver_interim_list(self) -> list:
return self.list_version["lts"] return [x for x in self.list_version if x[3] == 'interim']
@property @property
def ver_interim_list(self) -> list: def ver_lts_list(self) -> list:
return self.list_version["latest"] return [x for x in self.list_version if x[3] == 'LTS']
def compile_download(self) -> None: def compile_download(self) -> None:
# put constants in empty data # put constants in empty data
......
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