From 90d3fcf69c7ccd16928aa26c6fa288aafcb2e05d Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Tue, 7 Mar 2023 17:44:28 +0100 Subject: add meander preview images (#2113) --- lib/stitch_plan/lock_stitch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/stitch_plan') diff --git a/lib/stitch_plan/lock_stitch.py b/lib/stitch_plan/lock_stitch.py index fec75653..4e1d347b 100644 --- a/lib/stitch_plan/lock_stitch.py +++ b/lib/stitch_plan/lock_stitch.py @@ -11,13 +11,14 @@ from .stitch import Stitch class LockStitchDefinition: - def __init__(self, lock_id=None, name=None, path=None): + def __init__(self, lock_id=None, name=None, path=None, preview_image=None): self.id: str = lock_id self.name: str = name self._path: str = path + self.preview_image: str = None def __repr__(self): - return "LockStitchDefinition(%s, %s, %s)" % (self.id, self.name, self.path) + return "LockStitchDefinition(%s, %s, %s, %s)" % (self.id, self.name, self._path, self.preview_image) def stitches(self): raise NotImplementedError(f"{self.__class__.__name__} must implement stitches()") -- cgit v1.2.3