update cron job
This commit is contained in:
parent
32a7793b33
commit
ef6c292362
@ -82,7 +82,9 @@ async def run():
|
|||||||
cursor.execute("SELECT DISTINCT symbol FROM stocks WHERE symbol NOT LIKE '%.%'")
|
cursor.execute("SELECT DISTINCT symbol FROM stocks WHERE symbol NOT LIKE '%.%'")
|
||||||
total_symbols = [row[0] for row in cursor.fetchall()]
|
total_symbols = [row[0] for row in cursor.fetchall()]
|
||||||
con.close()
|
con.close()
|
||||||
total_symbols = ['PLTR']
|
|
||||||
|
#Testing mode
|
||||||
|
#total_symbols = ['PLTR']
|
||||||
for symbol in tqdm(total_symbols):
|
for symbol in tqdm(total_symbols):
|
||||||
try:
|
try:
|
||||||
await get_data(symbol)
|
await get_data(symbol)
|
||||||
|
|||||||
@ -304,6 +304,7 @@ def run_market_cap():
|
|||||||
week = datetime.today().weekday()
|
week = datetime.today().weekday()
|
||||||
if week <= 4:
|
if week <= 4:
|
||||||
run_command(["python3", "cron_market_cap.py"])
|
run_command(["python3", "cron_market_cap.py"])
|
||||||
|
run_command(["python3", "cron_revenue.py"])
|
||||||
|
|
||||||
|
|
||||||
def run_dividends():
|
def run_dividends():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user