From b03e9dc75a654f2d46a1f48b70ce7232324ff81a Mon Sep 17 00:00:00 2001 From: emilylange Date: Sat, 20 Apr 2024 18:07:36 +0200 Subject: [PATCH] fetch_gitea_snapshots: fix typo and make less expensive --- nix_update/version/gitea.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix_update/version/gitea.py b/nix_update/version/gitea.py index 2fd5e5a..f4dc63a 100644 --- a/nix_update/version/gitea.py +++ b/nix_update/version/gitea.py @@ -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())