Fix: Tools: 'issues_needing_info.py' failing

`&` is used to separate multiple parameters when there is already a `?`
This commit is contained in:
Germano Cavalcante
2025-03-03 12:45:08 -03:00
parent fbf6dd8d33
commit 8162e3dc8c

View File

@@ -56,7 +56,8 @@ def url_json_get_all_pages(
# XXX: In some cases, a bug prevents using the `page` and `limit` parameters if the page is 1
result_page = url_json_get(url)
else:
result_page = url_json_get(f"{url}&page={page}")
separator = '&' if urllib.parse.urlparse(url).query else '?'
result_page = url_json_get(f"{url}{separator}page={page}")
if not result_page:
break