Skip to content

Commit

Permalink
Set version latest from github request (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
timmo001 authored Apr 7, 2024
1 parent a288efd commit 35c2f24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions systembridgebackend/modules/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ async def _get_version_latest(self) -> Any | None:
if response.status == 200:
data = await response.json()
if data is not None and (tag_name := data.get("tag_name")) is not None:
return tag_name.replace("v", "")
self._version_latest = tag_name.replace("v", "")

return None
return self._version_latest

async def _get_version_newer_available(self) -> bool | None:
"""Check if newer version is available."""
Expand Down

0 comments on commit 35c2f24

Please sign in to comment.