fetch_gitea_snapshots: fix typo and make less expensive

This commit is contained in:
emilylange 2024-04-20 18:07:36 +02:00 committed by mergify[bot]
parent e948a7f797
commit b03e9dc75a

View File

@ -21,7 +21,7 @@ def fetch_gitea_snapshots(url: ParseResult, branch: str) -> list[Version]:
return []
_, owner, repo, *_ = url.path.split("/")
commits_url = f"https://{url.netloc}/api/v1/repos/{owner}/{repo}/commits?sha={branch}&limit=1stat=false"
commits_url = f"https://{url.netloc}/api/v1/repos/{owner}/{repo}/commits?sha={branch}&limit=1&stat=false&verification=false&files=false"
resp = urlopen(commits_url)
commits = json.loads(resp.read())