Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -21,7 +21,7 @@ def read_root():
|
|
21 |
async def get_file_list(
|
22 |
key: str,
|
23 |
page: int = Query(1, alias='page'), # default page to 1
|
24 |
-
per_page: int = Query(
|
25 |
):
|
26 |
url = f"https://doodapi.com/api/file/list?key={key}&page={page}&per_page={per_page}"
|
27 |
async with httpx.AsyncClient() as client:
|
|
|
21 |
async def get_file_list(
|
22 |
key: str,
|
23 |
page: int = Query(1, alias='page'), # default page to 1
|
24 |
+
per_page: int = Query(100, alias='per_page') # default per_page to 10
|
25 |
):
|
26 |
url = f"https://doodapi.com/api/file/list?key={key}&page={page}&per_page={per_page}"
|
27 |
async with httpx.AsyncClient() as client:
|