From 168629333759f24daf8a0c4d6034a5c05b48b4a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Sun, 26 Feb 2023 16:29:28 +0100 Subject: [PATCH] Config: read task toughness --- repartir_taches/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repartir_taches/config.py b/repartir_taches/config.py index 98baec2..3dde620 100644 --- a/repartir_taches/config.py +++ b/repartir_taches/config.py @@ -11,6 +11,7 @@ class Task: name: str qualified_name: str descr: str + tough: int notes: str time: str nb_groups: int @@ -89,6 +90,7 @@ class Config: name=task["nom"], qualified_name=qual_name, descr=task["descr"].format(**self.env), + tough=int(task["penible"]), notes=task.get("notes", ""), time=task.get("heure", ""), nb_groups=int(task.get("nb_groupes", 1)),