Refine .dockerignore to exclude test files and update response model type in simulate endpoint to use 'Any' instead of 'any'

This commit is contained in:
张鑫
2025-12-16 15:03:16 +08:00
parent 34ee91a66e
commit 6a6d6281b7
2 changed files with 1 additions and 2 deletions

View File

@@ -46,5 +46,4 @@ Dockerfile
*.log
# Testing
test_*.py
*_test.py

View File

@@ -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