From 2ee0c3d530b2646f576b630ad968f748c3585bc5 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 2 Dec 2024 10:32:28 +0100 Subject: [PATCH] update dashboard --- app/cron_dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/cron_dashboard.py b/app/cron_dashboard.py index f538532..2f9c196 100644 --- a/app/cron_dashboard.py +++ b/app/cron_dashboard.py @@ -280,7 +280,7 @@ async def get_analyst_report(): with sqlite3.connect('stocks.db') as con: cursor = con.cursor() cursor.execute("PRAGMA journal_mode = wal") - cursor.execute("SELECT DISTINCT symbol FROM stocks WHERE symbol NOT LIKE '%.%' AND symbol NOT LIKE '%-%' AND marketCap > 100E9") + cursor.execute("SELECT DISTINCT symbol FROM stocks WHERE symbol NOT LIKE '%.%' AND symbol NOT LIKE '%-%' AND marketCap > 50E9") symbols = {row[0] for row in cursor.fetchall()} # Use a set for fast lookups # Define the directory path @@ -411,7 +411,7 @@ async def run(): print(e) options_flow = {} - market_status = check_market_hours() + market_status = 0 #check_market_hours() if market_status == 0: try: with open("json/market-movers/markethours/gainers.json", 'r') as file: