summaryrefslogtreecommitdiff
path: root/lib/stitch_plan
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-03-07 17:44:28 +0100
committerGitHub <noreply@github.com>2023-03-07 17:44:28 +0100
commit90d3fcf69c7ccd16928aa26c6fa288aafcb2e05d (patch)
treeb6af463e2315741b2e025449d4dab5888bd7cfa4 /lib/stitch_plan
parentca6fc84d4b28903cd4fb0f577d297edc577db29e (diff)
add meander preview images (#2113)
Diffstat (limited to 'lib/stitch_plan')
-rw-r--r--lib/stitch_plan/lock_stitch.py5
1 files changed, 3 insertions, 2 deletions
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()")