From 650d703f8f144a4b44f98d7efc4a37a950424013 Mon Sep 17 00:00:00 2001 From: DmitryGantimurov Date: Sun, 13 Aug 2023 16:33:30 +0300 Subject: [PATCH] get_query_results-> filter_ann (in service.py module) --- back/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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