From ff684cc369195d40555f8868a7412d4b75429df7 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Thu, 17 Oct 2024 08:51:12 +0200 Subject: [PATCH] debugging --- app/cron_dashboard.py | 2 +- app/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/cron_dashboard.py b/app/cron_dashboard.py index ac0b6fd..bc33144 100644 --- a/app/cron_dashboard.py +++ b/app/cron_dashboard.py @@ -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: diff --git a/app/main.py b/app/main.py index cb04bb1..12ed9d5 100755 --- a/app/main.py +++ b/app/main.py @@ -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")