From 8315cb870b47f446a54d1d034c6f1c05c0dc6550 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Wed, 1 Feb 2023 01:45:54 +0100 Subject: [PATCH] Fix --- fastapi_book_server/app/services/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi_book_server/app/services/common.py b/fastapi_book_server/app/services/common.py index d451c74..7c7c37a 100644 --- a/fastapi_book_server/app/services/common.py +++ b/fastapi_book_server/app/services/common.py @@ -164,7 +164,7 @@ class BaseSearchService(Generic[MODEL, QUERY], BaseService[MODEL, QUERY]): @classmethod async def get(cls, query: QUERY, redis: aioredis.Redis) -> Page[MODEL]: - no_cache: bool = query.get("no_cache", False) # type: ignore + no_cache: bool = query.pop("no_cache", False) # type: ignore params = cls.get_params()