mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 23:39:16 +02:00
Fixed get-releases script
This commit is contained in:
parent
c4f675ef9b
commit
17cb19ec26
1 changed files with 9 additions and 1 deletions
|
@ -21,7 +21,15 @@ def get_versions():
|
|||
continue
|
||||
|
||||
tags.append({"id": tag, "date": date})
|
||||
return sorted(tags, key=lambda tag: StrictVersion(tag["id"]), reverse=True)
|
||||
valid = []
|
||||
for tag in tags:
|
||||
try:
|
||||
StrictVersion(tag["id"])
|
||||
valid.append(tag)
|
||||
except ValueError:
|
||||
continue
|
||||
|
||||
return sorted(valid, key=lambda tag: StrictVersion(tag["id"]), reverse=True)
|
||||
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue