X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;ds=sidebyside;f=plomtask%2Ftodos.py;h=ecdd599f2cd538acda5494fc5035e72e076b6730;hb=c4ccb784bb3a83c1c614c9bab7fc007ee17f6615;hp=d53674b6339679fa31ece5f78c0d871cfd90af01;hpb=f19823e9e77ae0017022dbfe63f66d2b065ba33a;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