Skip to content
Snippets Groups Projects

P2P

Open
Jammer, Timrequested to merge
p2p into main
2 files
+ 88
61
Compare changes
  • Side-by-side
  • Inline

Files

+ 1
1
@@ -314,7 +314,7 @@ class TemplateManager:
@@ -314,7 +314,7 @@ class TemplateManager:
if idx_to_use is None:
if idx_to_use is None:
raise IndexError("did not find place to insert")
raise IndexError("did not find place to insert")
self._instructions = self._instructions[1:idx_to_use] + new_instruction + self._instructions[idx_to_use + 1:]
self._instructions = self._instructions[0:idx_to_use] + new_instruction + self._instructions[idx_to_use:]
def remove_instruction(self, identifier: str = None, idx: int | typing.List[int] = None,
def remove_instruction(self, identifier: str = None, idx: int | typing.List[int] = None,
instruction: Instruction | typing.List[Instruction] = None):
instruction: Instruction | typing.List[Instruction] = None):
Loading