16 lines
396 B
Python
16 lines
396 B
Python
import threading
|
|
|
|
from waitress import serve
|
|
|
|
from app import app
|
|
from app.api import refresh_scores
|
|
from app.config import PORT
|
|
from app.scheduler import start_scheduler
|
|
from app.standings import refresh_standings
|
|
|
|
if __name__ == "__main__":
|
|
refresh_scores()
|
|
refresh_standings()
|
|
threading.Thread(target=start_scheduler, daemon=True).start()
|
|
serve(app, host="0.0.0.0", port=PORT)
|