Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed Jul 20, 2024
1 parent 3ff6c0a commit 329dd1f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 28 deletions.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ async def get_fair_price(data: TickerData, api_key: str = Security(get_api_key))


@app.post("/shareholders")
async def get_fair_price(data: TickerData, api_key: str = Security(get_api_key)):
async def get_shareholders(data: TickerData, api_key: str = Security(get_api_key)):

data = data.dict()
ticker = data['ticker'].upper()
Expand Down
48 changes: 21 additions & 27 deletions app/primary_cron_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,26 +127,22 @@ def run_share_statistics():
run_command(command)

def run_retail_volume():
week = datetime.today().weekday()
if week <= 5:
run_command(["python3", "cron_retail_volume.py"])
command = [
"sudo", "rsync", "-avz", "-e", "ssh",
"/root/backend/app/json/retail-volume",
f"root@{useast_ip_address}:/root/backend/app/json"
]
run_command(command)
run_command(["python3", "cron_retail_volume.py"])
command = [
"sudo", "rsync", "-avz", "-e", "ssh",
"/root/backend/app/json/retail-volume",
f"root@{useast_ip_address}:/root/backend/app/json"
]
run_command(command)

def run_cron_market_movers():
week = datetime.today().weekday()
if week <= 4:
run_command(["python3", "cron_market_movers.py"])
command = [
"sudo", "rsync", "-avz", "-e", "ssh",
"/root/backend/app/json/market-movers",
f"root@{useast_ip_address}:/root/backend/app/json"
]
run_command(command)
run_command(["python3", "cron_market_movers.py"])
command = [
"sudo", "rsync", "-avz", "-e", "ssh",
"/root/backend/app/json/market-movers",
f"root@{useast_ip_address}:/root/backend/app/json"
]
run_command(command)


def run_cron_market_news():
Expand All @@ -159,15 +155,13 @@ def run_cron_market_news():
run_command(command)

def run_cron_heatmap():
week = datetime.today().weekday()
if week <= 4:
run_command(["python3", "cron_heatmap.py"])
command = [
"sudo", "rsync", "-avz", "-e", "ssh",
"/root/backend/app/json/heatmaps",
f"root@{useast_ip_address}:/root/backend/app/json"
]
run_command(command)
run_command(["python3", "cron_heatmap.py"])
command = [
"sudo", "rsync", "-avz", "-e", "ssh",
"/root/backend/app/json/heatmaps",
f"root@{useast_ip_address}:/root/backend/app/json"
]
run_command(command)

def run_cron_quote():
week = datetime.today().weekday()
Expand Down

0 comments on commit 329dd1f

Please sign in to comment.