From 6a6d6281b75d85fe4f53c6c7543bf2a54851ec82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=91=AB?= Date: Tue, 16 Dec 2025 15:03:16 +0800 Subject: [PATCH] Refine .dockerignore to exclude test files and update response model type in simulate endpoint to use 'Any' instead of 'any' --- .dockerignore | 1 - main.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index f72ab56..0fd63c1 100644 --- a/.dockerignore +++ b/.dockerignore @@ -46,5 +46,4 @@ Dockerfile *.log # Testing -test_*.py *_test.py diff --git a/main.py b/main.py index a2ab11d..800ddcf 100644 --- a/main.py +++ b/main.py @@ -1480,7 +1480,7 @@ async def health_check(): """Health check endpoint""" return HealthCheckResponse(status="healthy", message="Soil water balance model API is running") -@app.post("/simulate", response_model=Dict[str, any]) +@app.post("/simulate", response_model=Dict[str, Any]) async def simulate_soil_water_balance(request: SimulationRequest): """ Run soil water balance simulation