style: Fix linting issues in scripts/issues.py

This commit is contained in:
Paul Gauthier (aider) 2024-09-21 16:05:59 -07:00
parent 26dcdcc1d2
commit 8cc747da3a

View file

@ -33,7 +33,7 @@ def get_issues(state="open"):
params={"state": state, "per_page": 1}, params={"state": state, "per_page": 1},
) )
response.raise_for_status() response.raise_for_status()
total_count = int(response.headers.get('Link', '').split('page=')[-1].split('>')[0]) total_count = int(response.headers.get("Link", "").split("page=")[-1].split(">")[0])
total_pages = (total_count + per_page - 1) // per_page total_pages = (total_count + per_page - 1) // per_page
with tqdm(total=total_pages, desc="Collecting issues", unit="page") as pbar: with tqdm(total=total_pages, desc="Collecting issues", unit="page") as pbar: