chore: minor fixes and formatting
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import logging
|
||||
from typing import Optional
|
||||
|
||||
from redis.asyncio import Redis
|
||||
|
||||
@@ -18,7 +17,7 @@ class RedisClient:
|
||||
logger.exception(e)
|
||||
return False
|
||||
|
||||
async def get_search_query(self, query_hash: str) -> Optional[str]:
|
||||
async def get_search_query(self, query_hash: str) -> str | None:
|
||||
try:
|
||||
res = await self.r.get(f"search:{query_hash}")
|
||||
return res.decode()
|
||||
|
||||
Reference in New Issue
Block a user