From f6f8cb4f1bf643a8d29f917d5c977cb2343f2672 Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Wed, 16 Oct 2024 11:46:39 +0200 Subject: Clean folder and configuration --- app.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'app.py') diff --git a/app.py b/app.py index a81bde0..40b75a1 100644 --- a/app.py +++ b/app.py @@ -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"]) -- cgit v1.3.1