Update code in endpoints/ypeople.get.py

This commit is contained in:
Backend IM Bot 2025-03-27 19:43:12 +01:00
parent 16c6116be3
commit 209d78d903

View File

@ -1,7 +1,9 @@
# Entity: Person
from fastapi import APIRouter, Depends
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
from helpers.person_helpers import get_people_below_age
@ -12,5 +14,5 @@ router = APIRouter()
async def get_young_people(
db: Session = Depends(get_db)
):
young_people = get_people_below_age(db, 40)
return young_people
people = get_people_below_age(db, 50)
return people