diff --git a/.gitignore b/.gitignore index 2d6aa28..3877716 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Secrets .env +data/teams # Files from PyCharm .idea/ diff --git a/problems b/data/problems similarity index 100% rename from problems rename to data/problems diff --git a/src/constants.py b/src/constants.py index ae69b4e..9ccc487 100644 --- a/src/constants.py +++ b/src/constants.py @@ -32,11 +32,11 @@ class Role: CAPTAIN = "Capitaine" -with open("problems") as f: - PROBLEMS = f.read().splitlines() -MAX_REFUSE = len(PROBLEMS) - 5 - ROUND_NAMES = ["premier tour", "deuxième tour"] TOP_LEVEL_DIR = Path(__file__).parent.parent TIRAGES_FILE = TOP_LEVEL_DIR / "data" / "tirages.yaml" + +with open(TOP_LEVEL_DIR / "data" / "problems") as f: + PROBLEMS = f.read().splitlines() +MAX_REFUSE = len(PROBLEMS) - 5