From 81a1f39a7334d9b61dfe6332041d98c1a18ac4fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20Cl=C3=A9net?= Date: Fri, 29 Sep 2023 11:21:07 +0200 Subject: [PATCH] Removine per_page query parameter --- narps_open/utils/status.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/narps_open/utils/status.py b/narps_open/utils/status.py index 96d4265f..6dced5bc 100644 --- a/narps_open/utils/status.py +++ b/narps_open/utils/status.py @@ -26,7 +26,7 @@ def get_opened_issues(): # Get all opened issues request_url = 'https://api.github.com/repos/Inria-Empenn/narps_open_pipelines/issues' - request_url += '?page={page_number}?per_page=30' + request_url += '?page={page_number}' issues = [] page = True # Will later be replaced by a table @@ -39,10 +39,6 @@ def get_opened_issues(): issues += page page_number += 1 - # Leave if there is only one page (in this case, the `page` query parameter has no effect) - if nb_issues < 30: - break - return issues def get_teams_with_pipeline_files():