repo_path + extend instead of append

This commit is contained in:
Jules Lasne (jlasne - seluj78) 2019-12-12 00:14:04 +01:00
parent 4fa4f44641
commit d2e075a29b

View File

@ -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 = {}