diff options
| author | Karan Jayachandra <mail@karanjayachandra.com> | 2024-11-15 13:08:05 +0100 |
|---|---|---|
| committer | Karan Jayachandra <mail@karanjayachandra.com> | 2024-11-15 13:08:05 +0100 |
| commit | e8ae44bebdd072b7b555cca5e0b8389d0eb3dbfd (patch) | |
| tree | 47d7827bd3f408e81f4ca604011b4d035acc6b6b /src/match_up/__init__.py | |
| parent | ffaca550cbbf89942fbf5b82ad911d75da1c3c51 (diff) | |
Removed the timer from the backend
Diffstat (limited to 'src/match_up/__init__.py')
| -rw-r--r-- | src/match_up/__init__.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/match_up/__init__.py b/src/match_up/__init__.py index 25b4d73..e6c472a 100644 --- a/src/match_up/__init__.py +++ b/src/match_up/__init__.py @@ -2,7 +2,6 @@ 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 @@ -22,12 +21,10 @@ from match_up import routes def main(): parser = ArgumentParser() - parser.add_argument("-t", "--timer", help="Min per round", type=float, default=12) parser.add_argument("-c", "--courts", help="Total courts", type=int, default=12) parser.add_argument("-d", "--database", help="CSV database", default=None) args = parser.parse_args() global rg rg.courts = CourtList(total=args.courts) - rg.timer = Timer(max_mins=args.timer) rg.players = PlayerList(csv_location=args.database) serve(app, port=80) |
