clean code
This commit is contained in:
parent
20c2a7d1bf
commit
c4889bc081
@ -1216,7 +1216,6 @@ async def stock_finder(data:StockScreenerData, api_key: str = Security(get_api_k
|
|||||||
cache_key = f"stock-screener-data-{rule_of_list}"
|
cache_key = f"stock-screener-data-{rule_of_list}"
|
||||||
cached_result = redis_client.get(cache_key)
|
cached_result = redis_client.get(cache_key)
|
||||||
if cached_result:
|
if cached_result:
|
||||||
print('cached')
|
|
||||||
return StreamingResponse(
|
return StreamingResponse(
|
||||||
io.BytesIO(cached_result),
|
io.BytesIO(cached_result),
|
||||||
media_type="application/json",
|
media_type="application/json",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user