update cron job

This commit is contained in:
MuslemRahimi 2025-02-20 23:24:08 +01:00
parent 32a7793b33
commit ef6c292362
2 changed files with 4 additions and 1 deletions

View File

@ -82,7 +82,9 @@ async def run():
cursor.execute("SELECT DISTINCT symbol FROM stocks WHERE symbol NOT LIKE '%.%'")
total_symbols = [row[0] for row in cursor.fetchall()]
con.close()
total_symbols = ['PLTR']
#Testing mode
#total_symbols = ['PLTR']
for symbol in tqdm(total_symbols):
try:
await get_data(symbol)

View File

@ -304,6 +304,7 @@ def run_market_cap():
week = datetime.today().weekday()
if week <= 4:
run_command(["python3", "cron_market_cap.py"])
run_command(["python3", "cron_revenue.py"])
def run_dividends():