From 303b30f6dda1e6f5c2d4273f9b90923fd9e8106c Mon Sep 17 00:00:00 2001 From: Dotty Dotter Date: Fri, 10 Apr 2026 14:30:54 +0200 Subject: [PATCH] Fix SyntaxError: user=Depends nach Form-Params (Python positional-after-default) --- app/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/main.py b/app/main.py index 91fefcc..b98ad89 100644 --- a/app/main.py +++ b/app/main.py @@ -139,12 +139,12 @@ async def index(request: Request): @limiter.limit("10/minute") async def start_analysis( request: Request, - user=Depends(require_auth), background_tasks: BackgroundTasks, text: Optional[str] = Form(None), file: Optional[UploadFile] = File(None), bundesland: str = Form("NRW"), model: str = Form("qwen-plus"), + user: dict = Depends(require_auth), ): """Start analysis job.""" if not text and not file: @@ -478,10 +478,10 @@ async def search_landtag( async def analyze_drucksache( request: Request, background_tasks: BackgroundTasks, - user=Depends(require_auth), drucksache: str = Form(...), bundesland: str = Form("NRW"), - model: str = Form("qwen-plus") + model: str = Form("qwen-plus"), + user: dict = Depends(require_auth), ): """ Download a document from parliament portal and analyze it. @@ -748,9 +748,9 @@ async def programme_status(): async def index_programme( request: Request, background_tasks: BackgroundTasks, - user=Depends(require_auth), programm_id: str = Form(None), all_programmes: bool = Form(False), + user: dict = Depends(require_auth), ): """Index programme(s) for semantic search.""" pdf_dir = static_dir / "referenzen"