From b06c29ee19263260861bac11f2932a86c329e961 Mon Sep 17 00:00:00 2001 From: methylDragon Date: Thu, 4 Apr 2024 02:43:03 -0700 Subject: [PATCH] Add per_page arg to fuel pagination for pit_crew Signed-off-by: methylDragon --- rmf_building_map_tools/pit_crew/pit_crew.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmf_building_map_tools/pit_crew/pit_crew.py b/rmf_building_map_tools/pit_crew/pit_crew.py index 459e81a95..9c2b624b7 100644 --- a/rmf_building_map_tools/pit_crew/pit_crew.py +++ b/rmf_building_map_tools/pit_crew/pit_crew.py @@ -844,7 +844,7 @@ def build_and_update_cache(cache_file_path=None, write_to_cache=True, while status == 200 and not break_flag: logger.info("Fetching page: %d" % page) - resp = requests.get("%s?page=%d" % (url_base, page)) + resp = requests.get("%s?page=%d&per_page=100" % (url_base, page)) status = resp.status_code page += 1