소스 검색

更新 'routers/api/taskRegistration/__init__.py'

许国洋 9 달 전
부모
커밋
4ecc9d00b3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      routers/api/taskRegistration/__init__.py

+ 2 - 2
routers/api/taskRegistration/__init__.py

@@ -145,8 +145,8 @@ async def update_task_status(
 
     if not task_id_to_use:
         return Response(content="Missing required parameter 'task_id'", status_code=400)
-    if processing_status not in ['已完成', '未完成','待处理']:
-        return Response(content="processing_status must be '已完成' or '未完成' or '待处理'", status_code=400)
+    if processing_status not in ['已完成', '处理中', '待处理']:
+        return Response(content="processing_status must be '已完成' or '处理中' or '待处理'", status_code=400)
 
     task_entry = (db.query(TaskRegistration)
                   .filter(TaskRegistration.del_flag != '2')