Browse Source

测试任务详情添加类型字段

bigcat 2 years ago
parent
commit
a50482f2f5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      apps/task/views/taskview.py

+ 1 - 0
apps/task/views/taskview.py

@@ -103,6 +103,7 @@ class TaskView(APIView):
                 'title': task.plan.title,
                 'description': task.plan.description,
                 'state': task.plan.state,
+                'type': task.plan.type,
                 'statements': [{'file_id': file_sid, 'file_name': file_name, 'file_url': HTTP_HEAD + file_url} for
                                file_sid, file_name, file_url in zip(plan_sids, plan_file_names, plan_file_urls)],
                 'creator': {'executor_id': task.plan.creator.id, 'executor_name': task.plan.creator.username},