Skip to content

Commit

Permalink
minor: get_task_list 新增create_method过滤参数
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshuaikang authored and normal-wls committed Nov 15, 2023
1 parent 0700401 commit f56a4ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions gcloud/apigw/forms/get_task_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ class GetTaskListForm(forms.Form):
is_finished = forms.BooleanField(required=False)
keyword = forms.CharField(required=False)
executor = forms.CharField(required=False)
create_method = forms.CharField(required=False)
1 change: 1 addition & 0 deletions gcloud/apigw/views/get_task_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def get_task_list(request, project_id):
"is_started": "pipeline_instance__is_started",
"is_finished": "pipeline_instance__is_finished",
"executor": "pipeline_instance__executor",
"create_method": "create_method",
}
filter_kwargs = dict(is_deleted=Value(0), project_id=project.id)
for param, filter_key in param_mappings.items():
Expand Down

0 comments on commit f56a4ec

Please sign in to comment.