From bbae4a01c11a4bd16f491adcad0259f8a71b08a6 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Wed, 13 Nov 2024 10:59:27 +0200 Subject: [PATCH] fix: remove release candidate suffix --- lnbits/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lnbits/helpers.py b/lnbits/helpers.py index 8eac33895a..e3d8bb4608 100644 --- a/lnbits/helpers.py +++ b/lnbits/helpers.py @@ -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")