From 9a77a6e314d32e06d0776c0aeb14c0bfba575d08 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Thu, 12 Jan 2023 17:25:35 +0200 Subject: [PATCH] fix: exclude `draft` and `prerelease` releases --- lnbits/extension_manger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/extension_manger.py b/lnbits/extension_manger.py index 43f1ac14d..c7d6ea484 100644 --- a/lnbits/extension_manger.py +++ b/lnbits/extension_manger.py @@ -399,7 +399,7 @@ async def fetch_github_repo_info(org: str, repository: str): detail=f"Cannot fetch extension releases: {releases_url}", ) - releases = resp.json() + releases= [r for r in resp.json() if r["draft"] == False and r["prerelease"] == False] config_url = f"""https://raw.githubusercontent.com/{org}/{repository}/{repo["default_branch"]}/config.json""" resp = await client.get(config_url)