mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-30 12:36:12 +02:00
fix: remove release candidate suffix
This commit is contained in:
parent
edfd297bf3
commit
bbae4a01c1
@ -222,7 +222,8 @@ def version_parse(v: str):
|
||||
Instead it return the lowest possible version ("0.0.0")
|
||||
"""
|
||||
try:
|
||||
# todo: handle -rc0x
|
||||
# remove release candidate suffix
|
||||
v = v.split("-")[0].split("rc")[0]
|
||||
return version.parse(v)
|
||||
except Exception:
|
||||
return version.parse("0.0.0")
|
||||
|
Loading…
x
Reference in New Issue
Block a user