chore(api): apply autofix manully

This commit is contained in:
QuantumGhost
2025-09-17 22:31:19 +08:00
parent 73d4bb596a
commit eefcd3ecc4
47 changed files with 241 additions and 268 deletions

View File

@ -104,7 +104,7 @@ class CustomizedPipelineTemplateApi(Resource):
def post(self, template_id: str):
with Session(db.engine) as session:
template = (
session.query(PipelineCustomizedTemplate).filter(PipelineCustomizedTemplate.id == template_id).first()
session.query(PipelineCustomizedTemplate).where(PipelineCustomizedTemplate.id == template_id).first()
)
if not template:
raise ValueError("Customized pipeline template not found.")

View File

@ -1,6 +1,5 @@
from collections.abc import Callable
from functools import wraps
from typing import Optional
from controllers.console.datasets.error import PipelineNotFoundError
from extensions.ext_database import db
@ -10,7 +9,7 @@ from models.dataset import Pipeline
def get_rag_pipeline(
view: Optional[Callable] = None,
view: Callable | None = None,
):
def decorator(view_func):
@wraps(view_func)