|
@@ -50,7 +50,7 @@ class TaskDetail(BaseModel):
|
|
|
class ConfigDetail(BaseModel):
|
|
|
config_id: str = Field(..., description="脚本配置id")
|
|
|
query_word: List[str] = Field(..., description="关键词")
|
|
|
- recommended_word: List[str] = Field(..., description="推荐词")
|
|
|
+ recommended_word: List[str] = Field([""], description="推荐词")
|
|
|
create_time: str = Field(..., description="创建时间")
|
|
|
operator: str = Field(..., description="创建人")
|
|
|
number: int = Field(..., description="序号")
|
|
@@ -401,9 +401,9 @@ def delete_script_config(item: DeleteScriptConfig):
|
|
|
response_model=BaseResponse,
|
|
|
description="获取素材和脚本任务",
|
|
|
summary='获取素材和脚本任务')
|
|
|
-def get_material_and_script_time_task():
|
|
|
+def get_material_and_script_time_task(start_time: Optional[str] = ""):
|
|
|
try:
|
|
|
- get_material_and_script()
|
|
|
+ get_material_and_script(start_time)
|
|
|
logger.info(f"{date.today().strftime('%Y-%m-%d')}, 获取素材和脚本任务执行完成.")
|
|
|
return {"code": 0,
|
|
|
"success": True,
|