Skip to content

Commit

Permalink
feat: 接口 get_task_list 支持状态过滤 TencentBlueKing#41
Browse files Browse the repository at this point in the history
  • Loading branch information
normal-wls committed Oct 21, 2024
1 parent 62db74b commit 8dc3709
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bkflow/apigw/views/get_task_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def get_task_list(request, space_id):
"create_at_start": "create_time__gte",
"create_at_end": "create_time__lte",
"name": "name__icontains",
"is_started": "is_started",
"is_finished": "is_finished",
}
for k, v in filter_map.items():
if k in data:
Expand Down
2 changes: 2 additions & 0 deletions bkflow/task/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ class Meta:
"start_time": ["gte", "lte"],
"finish_time": ["gte", "lte"],
"create_method": ["exact"],
"is_started": ["exact"],
"is_finished": ["exact"],
}


Expand Down

0 comments on commit 8dc3709

Please sign in to comment.