debugging
This commit is contained in:
parent
7b43918f3f
commit
ff684cc369
@ -343,7 +343,7 @@ async def run():
|
|||||||
|
|
||||||
|
|
||||||
market_status = check_market_hours()
|
market_status = check_market_hours()
|
||||||
|
print(market_status)
|
||||||
if market_status == 0:
|
if market_status == 0:
|
||||||
try:
|
try:
|
||||||
with open(f"json/market-movers/data.json", 'r') as file:
|
with open(f"json/market-movers/data.json", 'r') as file:
|
||||||
|
|||||||
@ -3085,7 +3085,7 @@ async def get_dashboard_info(api_key: str = Security(get_api_key)):
|
|||||||
res = []
|
res = []
|
||||||
|
|
||||||
redis_client.set(cache_key, orjson.dumps(res))
|
redis_client.set(cache_key, orjson.dumps(res))
|
||||||
redis_client.expire(cache_key, 60)
|
redis_client.expire(cache_key, 60*5)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
@app.post("/sentiment-analysis")
|
@app.post("/sentiment-analysis")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user