X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/gitweb.js?a=blobdiff_plain;f=plomtask%2Ftodos.py;h=ecdd599f2cd538acda5494fc5035e72e076b6730;hb=bdc1f2e1962b745d72c6a94f5071c24455c54b18;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