Modification in fetch page to be able to get all queries instead of 25
karenarcoverde opened this issue · 1 comments
Hi,
I need a list of all the queries instead of 25 queries. Can you change the version for this with this code below? Can you change your version on pip for my code?
I did some change in your code minxins.py to do this:
def fetch_page(self, page: int = 1, page_size: int = 100, **kwargs) -> List[Dict]:
"""Load a page of a paginated resource"""
response = self.__base.get(
self.endpoint, params=dict(page=page, page_size=page_size), **kwargs
)
return response.get("results")
Your code doesn't get all the queries, only 25, when you have, for example, 80 queries. But I need to get all queries with get_all(), get_id(). If I use get_id() It looks for the ids of only 25 queries when in fact I needed it to search for the 80 queries. Because of that, I made a change trying to fix this problem and it worked, but if you have another way it will help me.