debugging

This commit is contained in:
MuslemRahimi 2024-10-17 08:51:12 +02:00
parent 7b43918f3f
commit ff684cc369
2 changed files with 2 additions and 2 deletions

View File

@ -343,7 +343,7 @@ async def run():
market_status = check_market_hours()
print(market_status)
if market_status == 0:
try:
with open(f"json/market-movers/data.json", 'r') as file:

View File

@ -3085,7 +3085,7 @@ async def get_dashboard_info(api_key: str = Security(get_api_key)):
res = []
redis_client.set(cache_key, orjson.dumps(res))
redis_client.expire(cache_key, 60)
redis_client.expire(cache_key, 60*5)
return res
@app.post("/sentiment-analysis")