mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-01-19 05:33:47 +01:00
fix: exclude draft
and prerelease
releases
This commit is contained in:
parent
76fbb5ccbb
commit
9a77a6e314
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user