Config: read task toughness
This commit is contained in:
parent
87ffdee417
commit
1686293337
1 changed files with 2 additions and 0 deletions
|
@ -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)),
|
||||
|
|
Loading…
Reference in a new issue