Skip to content

Commit

Permalink
chore: nit on main
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Mar 23, 2024
1 parent ad96e02 commit 5853962
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions icon_stats/main_cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,14 @@ async def main():

sched = AsyncIOScheduler()

if config.NETWORK_NAME == 'mainnet':
# Refresh the list right away
await applications_refresh.run_applications_refresh()
else:
if config.NETWORK_NAME != 'mainnet':
logger.info("Not mainnet - skipping since we don't have a list of apps.")
await asyncio.Future()

# Refresh the list right away
await applications_refresh.run_applications_refresh()


for i in CRONS:
# Run the jobs immediately in order
if i["table"] is not None:
Expand Down

0 comments on commit 5853962

Please sign in to comment.