diff --git a/rmf_building_map_tools/pit_crew/pit_crew.py b/rmf_building_map_tools/pit_crew/pit_crew.py index 459e81a9..fad6bfad 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 @@ -854,7 +854,12 @@ def build_and_update_cache(cache_file_path=None, write_to_cache=True, author_name = model.get("owner", "") # If a cached model was found, halt - if (model_name, author_name) in old_cache['model_cache']: + if ( + (model_name, author_name) in old_cache['model_cache'] + # this particular model is duplicated in fuel, + # causing the cache to break early + and model_name != "ur5_rg2" and author_name != "anni" + ): logger.info("Cached model found! " "Halting Fuel traversal...") break_flag = True