fix: exclude draft and prerelease releases

This commit is contained in:
Vlad Stan 2023-01-12 17:25:35 +02:00
parent 76fbb5ccbb
commit 9a77a6e314

View File

@ -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)