refactor: flatten app/scoreboard/ subpackage and rename files for clarity
All checks were successful
CI / Lint (push) Successful in 5s
CI / Test (push) Successful in 6s
CI / Build & Push (push) Successful in 16s

This commit is contained in:
2026-03-29 10:16:35 -04:00
parent da277e41a4
commit a4dc7dff52
11 changed files with 11 additions and 12 deletions

18
app/scheduler.py Normal file
View File

@@ -0,0 +1,18 @@
import logging
import time
import schedule
from app.api import store_scoreboard_data
from app.standings import update_nhl_standings
logger = logging.getLogger(__name__)
def schedule_tasks():
schedule.every(600).seconds.do(update_nhl_standings)
schedule.every(10).seconds.do(store_scoreboard_data)
logger.info("Background scheduler started")
while True:
schedule.run_pending()
time.sleep(1)