diff options
Diffstat (limited to 'src/match_up')
| -rw-r--r-- | src/match_up/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |
