bugfixing
This commit is contained in:
parent
7a5fe3130b
commit
5fc0a4e9e0
@ -42,7 +42,7 @@ async def fetch_options_activity(page):
|
|||||||
return []
|
return []
|
||||||
|
|
||||||
# Asynchronous function to fetch multiple pages
|
# Asynchronous function to fetch multiple pages
|
||||||
async def fetch_all_pages(max_pages=15):
|
async def fetch_all_pages(max_pages=50):
|
||||||
tasks = [fetch_options_activity(page) for page in range(max_pages)]
|
tasks = [fetch_options_activity(page) for page in range(max_pages)]
|
||||||
results = await asyncio.gather(*tasks)
|
results = await asyncio.gather(*tasks)
|
||||||
return [item for sublist in results for item in sublist]
|
return [item for sublist in results for item in sublist]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user