Skip to content

Commit

Permalink
Merge pull request #134 from Bycelium/bug/run-right-no-output
Browse files Browse the repository at this point in the history
🪲 fixes run_right without output
  • Loading branch information
MathisFederico authored Jan 5, 2022
2 parents 4e9cc02 + 5649f9a commit df179d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opencodeblocks/blocks/executableblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,10 @@ def run_right(self):

# Gather outputs
blocks_to_run, _ = self.custom_bfs(self, reverse=True)
self.blocks_to_run = blocks_to_run
self.blocks_to_run = [self] + blocks_to_run

# For each output found
for block in blocks_to_run.copy()[::-1]:
for block in self.blocks_to_run.copy()[::-1]:
# Gather dependencies
new_blocks_to_run, _ = self.custom_bfs(block)
self.blocks_to_run += new_blocks_to_run
Expand Down

0 comments on commit df179d0

Please sign in to comment.