1
0
mirror of https://gitlab.com/ddorn/tfjm-discord-bot.git synced 2024-12-25 16:22:21 +00:00

♻️🙈 move problems to data forlder

This commit is contained in:
ddorn 2020-04-27 13:34:55 +02:00
parent 7f3c81cd81
commit 45a74e5a71
3 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
# Secrets
.env
data/teams
# Files from PyCharm
.idea/

View File

@ -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