From b3b42cc1b83beada92f38004a9d3febd2f69d615 Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Fri, 15 Nov 2024 12:17:33 +0100 Subject: Changed to the HTTP port --- src/match_up/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/match_up/__init__.py') diff --git a/src/match_up/__init__.py b/src/match_up/__init__.py index 61a8416..25b4d73 100644 --- a/src/match_up/__init__.py +++ b/src/match_up/__init__.py @@ -1,10 +1,12 @@ from flask import Flask +from waitress import serve from argparse import ArgumentParser from importlib.resources import path from match_up.utilities import Timer from match_up.controller import RoundGenerator from match_up.model import CourtList, PlayerList + with path("match_up", "static") as p: static_folder = p with path("match_up", "templates") as p: @@ -28,4 +30,4 @@ def main(): rg.courts = CourtList(total=args.courts) rg.timer = Timer(max_mins=args.timer) rg.players = PlayerList(csv_location=args.database) - app.run() + serve(app, port=80) -- cgit v1.3.1