This commit is contained in:
deathbybandaid 2022-05-05 14:30:06 -04:00
parent 7e308082e3
commit 0166950b7a

View File

@ -83,13 +83,13 @@ def rebuild_pipes(commands, trigger_str_add=None):
if not trigger_str_add: if not trigger_str_add:
repipe_trigger_dict = commands[0] repipe_trigger_dict = commands[0]
index_value = 1 next_index_value = 1
else: else:
repipe_trigger_dict = commands[1] repipe_trigger_dict = commands[1]
repipe_trigger_dict["trigger_str"] += " %s" % trigger_str_add repipe_trigger_dict["trigger_str"] += " %s" % trigger_str_add
index_value = 2 next_index_value = 2
for trigger_dict in commands[index_value:]: for trigger_dict in commands[next_index_value:]:
if trigger_dict["trigger_type"] == "command": if trigger_dict["trigger_type"] == "command":
repipe_trigger_dict["trigger_str"] += " %s %s%s %s" % (sb.commands.pipe_split_key, repipe_trigger_dict["trigger_str"] += " %s %s%s %s" % (sb.commands.pipe_split_key,