Update code in endpoints/young_people.get.py

This commit is contained in:
Backend IM Bot 2025-03-27 18:59:26 +01:00
parent 60d252a3ac
commit a8e01168b2

View File

@ -1,8 +1,8 @@
# Entity: Person
from fastapi import APIRouter, Depends
from typing import List
from fastapi import APIRouter, Depends, status
from sqlalchemy.orm import Session
from typing import List
from core.database import get_db
from models.person import Person
from schemas.person import PersonSchema
@ -14,5 +14,5 @@ router = APIRouter()
async def get_young_people(
db: Session = Depends(get_db)
):
young_people = get_young_people(db)
return young_people
people = get_young_people(db)
return people