From 43af8dc528278cbd7fcceacfe9f32250ae97cff9 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Thu, 30 May 2019 12:21:10 +0800 Subject: [PATCH] fixed issue https://github.com/tikazyq/crawlab/issues/45 --- crawlab/routes/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawlab/routes/tasks.py b/crawlab/routes/tasks.py index 5ae7648b..8f09bbf7 100644 --- a/crawlab/routes/tasks.py +++ b/crawlab/routes/tasks.py @@ -178,7 +178,7 @@ class TaskApi(BaseApi): if not col_name: return [] fields = get_spider_col_fields(col_name) - items = db_manager.list(col_name, {'task_id': id}) + items = db_manager.list(col_name, {'task_id': id}, skip=page_size * (page_num - 1), limit=page_size) return { 'status': 'ok', 'fields': jsonify(fields),