From b1bd86962fa2aa3a502a3a31383ef71f19717560 Mon Sep 17 00:00:00 2001 From: phil Date: Thu, 19 Jun 2025 15:50:45 +0200 Subject: [PATCH] Update import for Knoc update --- src/knoc_plugin_template/api.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/knoc_plugin_template/api.py b/src/knoc_plugin_template/api.py index 4303319..14a1678 100644 --- a/src/knoc_plugin_template/api.py +++ b/src/knoc_plugin_template/api.py @@ -16,8 +16,7 @@ from sqlmodel.ext.asyncio.session import AsyncSession from hatchet_sdk.runnables.types import EmptyModel from knoc.settings import settings -from knoc.workflows import all_wfs -from knoc.workflows.utils import ImportReport +from knoc.utils import ImportReport from knoc.db import engine, aio_sql_to_df, get_session from knoc_plugin_template.workflows import SimpleOutput, do_nothing_wf @@ -29,8 +28,8 @@ app = FastAPI() @app.get("/") -async def template_api_home() -> HTMLResponse: - return HTMLResponse("

Plugin template home

") +async def template_api_home(): + return {} @app.get("/run_wf")