From 507115ece6790a29aa96a836452e7247fc8b19b6 Mon Sep 17 00:00:00 2001 From: Pavel_Sorokin Date: Tue, 19 Nov 2024 23:07:28 +0400 Subject: [PATCH] fix for Maxim --- server/src/routers/wind_park_router.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/src/routers/wind_park_router.py b/server/src/routers/wind_park_router.py index 4269155..8cb60f4 100644 --- a/server/src/routers/wind_park_router.py +++ b/server/src/routers/wind_park_router.py @@ -112,9 +112,6 @@ async def get_turbines_by_park_id(park_id: int, db: Session = Depends(get_db)): """Получить все турбины в ветропарке по ID""" turbines = WindParkRepository.get_turbines_by_park_id(park_id, db) - if not turbines: - raise HTTPException(status_code=404, detail="Турбины не найдены для данного ветропарка") - return turbines