Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jaasonw committed Nov 26, 2023
1 parent 80d9de2 commit 7c3e0fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions issues_with_missing_labels_over_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def get_issues(page = 1):
if response.status_code != 200:
raise requests.exceptions.HTTPError(response)
issues = response.json()

links = response.headers["Link"]
links = links.split(",")
next_link = links[1].split(";")[0].replace("<", "").replace(">", "").strip()
Expand All @@ -28,7 +27,7 @@ def get_issues(page = 1):
issues, last = get_issues()
for page in range(2, int(last) + 1):
print(f"Fetching page: {page}/{last}")
issues.extend(get_issues(page))
issues.extend(get_issues(page)[0])
print("Number of issues:", len(issues))

for issue in issues:
Expand Down

0 comments on commit 7c3e0fd

Please sign in to comment.