Skip to content

Commit 15b93a5

Browse files
committed
fix get_tasks_v2
1 parent 85ee242 commit 15b93a5

File tree

1 file changed

+1
-1
lines changed
  • dpdispatcher/dpcloudserver

1 file changed

+1
-1
lines changed

dpdispatcher/dpcloudserver/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def get_tasks_v2(job_id, group_id, page=1, per_page=10):
194194
if job_id == each["task_id"]:
195195
return [each]
196196
if len(ret['items']) != 0:
197-
return get_tasks_v2(job_id, group_id, page=2)
197+
return get_tasks_v2(job_id, group_id, page=page+1)
198198
return []
199199

200200
#%%

0 commit comments

Comments
 (0)