summaryrefslogtreecommitdiff
path: root/lib/stitch_plan/lock_stitch.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stitch_plan/lock_stitch.py')
-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()")