get_query_results-> filter_ann (in service.py module)

This commit is contained in:
DmitryGantimurov 2023-08-13 16:33:30 +03:00
parent 6241fafbc6
commit 650d703f8f

View File

@ -43,7 +43,7 @@ def announcements_list(db: Annotated[Session, Depends(utils.get_db)], obsolete:
# параметры для сортировки (схема pydantic schemas.SortAnnouncements)
params_to_sort = schemas.SortAnnouncements(obsolete=obsolete, user_id=user_id, metro=metro, category=category)
# получаем результат
result = get_query_results(db=db, schema=params_to_sort)
result = service.filter_ann(db=db, schema=params_to_sort)
return result