diff --git a/back/api.py b/back/api.py index dc30120..96bc162 100644 --- a/back/api.py +++ b/back/api.py @@ -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