Skip to content

Commit

Permalink
update cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed Aug 1, 2024
1 parent eb023e4 commit 2e5c388
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/cron_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ async def run():
async with aiohttp.ClientSession() as session:
benzinga_news = await get_latest_bezinga_market_news(session)
try:
with open(f"json/congress-trading/rss-feed/data.json", 'r') as file:
congress_flow = ujson.load(file)[0:4]
with open(f"json/retail-volume/data.json", 'r') as file:
retail_tracker = ujson.load(file)[0:5]
except:
congress_flow = []
retail_tracker = []
try:
with open(f"json/options-flow/feed/data.json", 'r') as file:
options_flow = ujson.load(file)
Expand Down Expand Up @@ -102,7 +102,7 @@ async def run():

quick_info = {**market_mover, 'shorted': shorted_stock}

data = {'quickInfo': quick_info, 'optionsFlow': options_flow, 'congressFlow': congress_flow, 'wiimFeed': wiim_feed, 'marketNews': benzinga_news}
data = {'quickInfo': quick_info, 'optionsFlow': options_flow, 'retailTracker': retail_tracker, 'wiimFeed': wiim_feed, 'marketNews': benzinga_news}

if len(data) > 0:
await save_json(data)
Expand Down

0 comments on commit 2e5c388

Please sign in to comment.