From a003323e87ac7fbeb66e3e0fbc206d1949ec3e42 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 26 Aug 2020 11:24:22 -0400 Subject: [PATCH] API: repo_commits_GET: fix get_log call A new parameter was introduced. --- gitsrht/blueprints/api/porcelain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitsrht/blueprints/api/porcelain.py b/gitsrht/blueprints/api/porcelain.py index b7a1388..66e6add 100644 --- a/gitsrht/blueprints/api/porcelain.py +++ b/gitsrht/blueprints/api/porcelain.py @@ -147,7 +147,7 @@ def repo_commits_GET(username, reponame, ref, path): start = request.args.get("start") if start: commit = git_repo.get(start) - commits = get_log(git_repo, commit, commits_per_page) + commits = get_log(git_repo, commit, commits_per_page=commits_per_page) next_id = None if len(commits) > commits_per_page: next_id = str(commits[-1].id) -- 2.38.4