X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=plomtask%2Ftodos.py;fp=plomtask%2Ftodos.py;h=ecdd599f2cd538acda5494fc5035e72e076b6730;hb=704c00a101fc1922158a3a71a043562d34b696ad;hp=d53674b6339679fa31ece5f78c0d871cfd90af01;hpb=c6ad5c1fe2811225648a1d1c74c667ed38b7671e;p=plomtask diff --git a/plomtask/todos.py b/plomtask/todos.py index d53674b..ecdd599 100644 --- a/plomtask/todos.py +++ b/plomtask/todos.py @@ -177,11 +177,11 @@ class Todo(BaseModel[int], ConditionsRelations): potentially_enabled = set() for child in step.children: for condition in child.enables: - potentially_enabled.add(condition) + potentially_enabled.add(condition.id_) children += [make_node(child)] for condition in [c for c in step.conditions if (not c.is_active) - and (c not in potentially_enabled)]: + and (c.id_ not in potentially_enabled)]: children += [make_node(condition)] else: seen = step.id_ in seen_conditions