test-entity #6

Merged
maxim merged 11 commits from test-entity into main 2024-11-24 13:45:06 +04:00
Showing only changes of commit a60304ca0f - Show all commits

View File

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