From 45a74e5a713cb53e822576dd066ef3b826e3d8e9 Mon Sep 17 00:00:00 2001 From: ddorn Date: Mon, 27 Apr 2020 13:34:55 +0200 Subject: [PATCH] :recycle::see_no_evil: move problems to data forlder --- .gitignore | 1 + problems => data/problems | 0 src/constants.py | 8 ++++---- 3 files changed, 5 insertions(+), 4 deletions(-) rename problems => data/problems (100%) 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