update cron job

This commit is contained in:
MuslemRahimi 2024-11-25 15:59:56 +01:00
parent b8d8779b05
commit e57b8bcae2

View File

@ -280,7 +280,7 @@ async def get_analyst_report():
with sqlite3.connect('stocks.db') as con: with sqlite3.connect('stocks.db') as con:
cursor = con.cursor() cursor = con.cursor()
cursor.execute("PRAGMA journal_mode = wal") cursor.execute("PRAGMA journal_mode = wal")
cursor.execute("SELECT DISTINCT symbol FROM stocks WHERE symbol NOT LIKE '%.%' AND symbol NOT LIKE '%-%' AND marketCap > 50E9") cursor.execute("SELECT DISTINCT symbol FROM stocks WHERE symbol NOT LIKE '%.%' AND symbol NOT LIKE '%-%' AND marketCap > 100E9")
symbols = {row[0] for row in cursor.fetchall()} # Use a set for fast lookups symbols = {row[0] for row in cursor.fetchall()} # Use a set for fast lookups
# Define the directory path # Define the directory path