Skip to content

Commit

Permalink
Fix small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cgokmen committed Dec 12, 2024
1 parent 7b6eda6 commit 281f89b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bddl/knowledge_base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def derivative_parent(self):
return None

# Find the synset that has this as a child
parent_candidates = [s for s in Synset.all_objects() if self in s.children]
parent_candidates = [s for s in Synset.all_objects() if self in s.derivative_children]
assert len(parent_candidates) == 1, f"Expected 1 parent, got {parent_candidates}"
return parent_candidates[0]

Expand Down

0 comments on commit 281f89b

Please sign in to comment.