Skip to content

Commit

Permalink
Fix bug in __remove_redundant_tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kevcruse96 committed Nov 4, 2021
1 parent 1e83f8a commit 959e638
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synthesis_action_retriever/build_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def __remove_redundant_tags(self, joined_acts, joined_acts_ids):
])
]
if not acts_w_props:
true_act = self.graph_data_sent[-1]
true_act = joined_acts[-1]
joined_acts_ids.remove(self.graph_data_sent.index(true_act))
for j in joined_acts_ids:
for j in sorted(joined_acts_ids, reverse=True):
del self.graph_data_sent[j]
return
elif len(acts_w_props) == 1:
Expand Down

0 comments on commit 959e638

Please sign in to comment.