Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🪲 fixes run_right without output #134

Merged
merged 1 commit into from
Jan 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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