mirror of
https://github.com/lnbits/lnbits.git
synced 2025-08-08 17:22:14 +02:00
fix: remove release candidate suffix
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user