From d2e075a29bf9e2f8657bedd80c64f138acc529ed Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne - seluj78)" Date: Thu, 12 Dec 2019 00:14:04 +0100 Subject: [PATCH] repo_path + extend instead of append --- potodo/_github.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/potodo/_github.py b/potodo/_github.py index 557589d..fe85428 100644 --- a/potodo/_github.py +++ b/potodo/_github.py @@ -38,10 +38,10 @@ def get_reservation_list(repo_path: str) -> Mapping[str, str]: """ issues: list = [] - next_url = "https://api.github.com/repos/" + get_repo_name() + "/issues?state=open" + next_url = "https://api.github.com/repos/" + get_repo_name(repo_path) + "/issues?state=open" while next_url: resp = requests.get(next_url) - issues.append(resp.json) + issues.extend(resp.json()) next_url = resp.links.get("next", {}).get("url") reservations = {}