Skip to content

Commit

Permalink
update cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed Jul 12, 2024
1 parent 10e61eb commit 3668a5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/cron_analyst_insight.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,9 @@ def get_summary(data):
try:
stock_con = sqlite3.connect('stocks.db')
stock_cursor = stock_con.cursor()
stock_cursor.execute("SELECT DISTINCT symbol FROM stocks WHERE marketCap >= 100E6 AND symbol NOT LIKE '%.%'")
stock_cursor.execute("SELECT DISTINCT symbol FROM stocks WHERE symbol NOT LIKE '%.%'")
stock_symbols = [row[0] for row in stock_cursor.fetchall()]


stock_con.close()

for symbol in tqdm(stock_symbols):
Expand Down

0 comments on commit 3668a5a

Please sign in to comment.