all
This commit is contained in:
parent
a94bcdfee2
commit
bab630934c
|
@ -181,7 +181,7 @@ async def deal_tab(
|
||||||
result = task_data_json["result"]["tasks"]
|
result = task_data_json["result"]["tasks"]
|
||||||
|
|
||||||
while len(task_data_json["result"]["tasks"]) == 50 or len(result) > 50*4:
|
while len(task_data_json["result"]["tasks"]) == 50 or len(result) > 50*4:
|
||||||
limit = ((result//50) + 1) * 50
|
limit = ((len(result)//50) + 1) * 50
|
||||||
task_data = requests.get(get_task_hook + f"limit={limit}")
|
task_data = requests.get(get_task_hook + f"limit={limit}")
|
||||||
task_data_json = task_data.json()
|
task_data_json = task_data.json()
|
||||||
result += task_data_json["result"]["tasks"]
|
result += task_data_json["result"]["tasks"]
|
||||||
|
|
Loading…
Reference in New Issue