From 5649f9a673d2643ba9246cbcdf5d1f9438302c78 Mon Sep 17 00:00:00 2001 From: AlexandreSajus Date: Wed, 5 Jan 2022 22:10:16 +0100 Subject: [PATCH] :beetle: fixes run_right without output --- opencodeblocks/blocks/executableblock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opencodeblocks/blocks/executableblock.py b/opencodeblocks/blocks/executableblock.py index a6adb77e..5539741a 100644 --- a/opencodeblocks/blocks/executableblock.py +++ b/opencodeblocks/blocks/executableblock.py @@ -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