search-query-fix-5
All checks were successful
deploy / deploy (push) Successful in 1m28s

This commit is contained in:
2023-12-25 04:56:30 +03:00
parent c76e1625f3
commit ec70549e48
2 changed files with 2 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ class SearchService:
async def search(text: str, limit: int = 50, offset: int = 0) -> List[Shout]:
payload = []
try:
# TODO: add ttl for redis cached search results
cached = await redis.execute("GET", text)
if not cached: