diff --git a/README.md b/README.md index f2b2f40..0d91a10 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ client = Client( - `search_type` (SearchType): fisica or moral. - `search_list` (tuple[SearchList, ...]): Lists to search. If not provided, searches all. +- `include_history` (bool | None): If `True`, include historical records; if `False`, only current; if `None`, use API default. The search follows a hierarchical approach: it first attempts to find a match using the RFC. If no match is found, it searches by CURP. Finally, if neither is found, it looks for a match by name. diff --git a/quienesquien/client.py b/quienesquien/client.py index 6a8e70a..fa7b24f 100644 --- a/quienesquien/client.py +++ b/quienesquien/client.py @@ -66,6 +66,7 @@ async def search( birthday: dt.date | None = None, search_type: SearchType | None = None, search_list: tuple[SearchList, ...] | None = None, + include_history: bool | None = None, ) -> list[Person]: """Perform a search request and return the results. @@ -105,6 +106,7 @@ async def search( 'birthday': birthday.strftime('%d/%m/%Y') if birthday else None, 'type': search_type.value if search_type is not None else None, 'list': ','.join(search_list) if search_list else None, + 'include_history': include_history, } params = {k: v for k, v in params.items() if v is not None} diff --git a/quienesquien/version.py b/quienesquien/version.py index 3f6fab6..8a81504 100644 --- a/quienesquien/version.py +++ b/quienesquien/version.py @@ -1 +1 @@ -__version__ = '1.0.3' +__version__ = '1.0.4' diff --git a/requirements-test.txt b/requirements-test.txt index 454837f..fba3d58 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -9,3 +9,4 @@ types-requests==2.* pytest-asyncio==0.* pytest-mock==3.* respx==0.* +vcrpy==7.0.*