Improved usability of external progressbar func (#476)

This commit is contained in:
Soxoj
2022-05-14 02:06:33 +03:00
committed by GitHub
parent bb6ed59e44
commit 929366cc81
2 changed files with 26 additions and 3 deletions
+4 -1
View File
@@ -580,6 +580,8 @@ async def maigret(
cookies=None,
retries=0,
check_domains=False,
*args,
**kwargs,
) -> QueryResultWrapper:
"""Main search func
@@ -660,7 +662,8 @@ async def maigret(
executor = AsyncioSimpleExecutor(logger=logger)
else:
executor = AsyncioProgressbarQueueExecutor(
logger=logger, in_parallel=max_connections, timeout=timeout + 0.5
logger=logger, in_parallel=max_connections, timeout=timeout + 0.5,
*args, **kwargs
)
# make options objects for all the requests