bunndles/sshmon: fix update checks

This commit is contained in:
Franzi 2025-03-29 18:13:07 +01:00
parent da7928d0e6
commit 3bcf7ad714
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 4 additions and 4 deletions

View file

@ -38,10 +38,10 @@ try:
for i in releases:
if i["tag_name"].startswith(tag_prefix):
if (
if not (i["prerelease"] or i["draft"]) and (
newest_release is None
or parse(i["tag_name"]) > parse(newest_release["tag_name"])
) and not (i["prerelease"] or i["draft"]):
):
newest_release = i
assert newest_release is not None, "Could not determine latest release"

View file

@ -37,10 +37,10 @@ try:
for i in releases:
if i["tag_name"].startswith(tag_prefix):
if (
if not (i["prerelease"] or i["draft"]) and (
newest_release is None
or parse(i["tag_name"]) > parse(newest_release["tag_name"])
) and not (i["prerelease"] or i["draft"]):
):
newest_release = i
assert newest_release is not None, "Could not determine latest release"