diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-16 11:46:39 +0200 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-16 11:46:39 +0200 |
| commit | f6f8cb4f1bf643a8d29f917d5c977cb2343f2672 (patch) | |
| tree | 8bbd6d244e0f19196a71d67274f25da29f01a44a /app.py | |
| parent | fbed8387a39e42cee7235384d7f8380ee158a3b3 (diff) | |
Clean folder and configuration
Diffstat (limited to 'app.py')
| -rw-r--r-- | app.py | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -4,13 +4,10 @@ from controller import RoundGenerator from model import CourtList, PlayerList from flask import Flask, render_template, request - load_dotenv() - - app = Flask("Match Up! Backend") -app.config.from_object(getenv("PROD_APP_SETTINGS", "config.DevelopmentConfig")) -rg = RoundGenerator(courts=CourtList(12), players=PlayerList("test_data_large.csv")) +app.config.from_object(getenv("PROD_APP_SETTINGS")) +rg = RoundGenerator(courts=CourtList(12), players=PlayerList(getenv("DATABASE"))) @app.route("/", methods=["GET"]) |
