refactor: rename functions across codebase for clarity
This commit is contained in:
@@ -3,15 +3,15 @@ import time
|
||||
|
||||
import schedule
|
||||
|
||||
from app.api import store_scoreboard_data
|
||||
from app.standings import update_nhl_standings
|
||||
from app.api import refresh_scores
|
||||
from app.standings import refresh_standings
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def schedule_tasks():
|
||||
schedule.every(600).seconds.do(update_nhl_standings)
|
||||
schedule.every(10).seconds.do(store_scoreboard_data)
|
||||
def start_scheduler():
|
||||
schedule.every(600).seconds.do(refresh_standings)
|
||||
schedule.every(10).seconds.do(refresh_scores)
|
||||
logger.info("Background scheduler started")
|
||||
while True:
|
||||
schedule.run_pending()
|
||||
|
||||
Reference in New Issue
Block a user