get_query_results-> filter_ann (in service.py module)
This commit is contained in:
parent
6241fafbc6
commit
650d703f8f
@ -43,7 +43,7 @@ def announcements_list(db: Annotated[Session, Depends(utils.get_db)], obsolete:
|
|||||||
# параметры для сортировки (схема pydantic schemas.SortAnnouncements)
|
# параметры для сортировки (схема pydantic schemas.SortAnnouncements)
|
||||||
params_to_sort = schemas.SortAnnouncements(obsolete=obsolete, user_id=user_id, metro=metro, category=category)
|
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
|
return result
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user