Files
NHL-Scoreboard/run.py
josh a4dc7dff52
All checks were successful
CI / Lint (push) Successful in 5s
CI / Test (push) Successful in 6s
CI / Build & Push (push) Successful in 16s
refactor: flatten app/scoreboard/ subpackage and rename files for clarity
2026-03-29 10:16:35 -04:00

14 lines
412 B
Python

import threading
from app import app
from app.config import PORT
from app.scheduler import schedule_tasks
from app.api import store_scoreboard_data
from app.standings import update_nhl_standings
from waitress import serve
if __name__ == "__main__":
store_scoreboard_data()
update_nhl_standings()
threading.Thread(target=schedule_tasks, daemon=True).start()
serve(app, host="0.0.0.0", port=PORT)