Formatting
This commit is contained in:
1 parent
12508bda83
commit
99f9eccf00
7 files changed
+187
-85
No files matched your search
+9
-2
@@ -96,12 +96,19 @@ class ImageTask(PrintTask):
|
||||
|
||||
def get_print_data(self):
|
||||
# Return image data in printer-compatible format
|
||||
return {"img": self.image_path, "sign": self.signature, "process": self.process, "do_cut": self.do_cut}
|
||||
return {
|
||||
"img": self.image_path,
|
||||
"sign": self.signature,
|
||||
"process": self.process,
|
||||
"do_cut": self.do_cut,
|
||||
}
|
||||
|
||||
|
||||
class RemoveTask(PrintTask):
|
||||
"""
|
||||
This class is used to clear images and leftovers after a print
|
||||
"""
|
||||
|
||||
def __init__(self, task_id, image_path):
|
||||
super().__init__(TaskType.REMOVE)
|
||||
self.task_id = self._generate_id() if not task_id else task_id
|
||||
@@ -111,4 +118,4 @@ class RemoveTask(PrintTask):
|
||||
# the task existence in itself is indication of what to do
|
||||
def get_print_data(self):
|
||||
# Return image data in printer-compatible format
|
||||
return {"img": self.image_path}
|
||||
return {"img": self.image_path}
|
||||
Reference in new issue
Block a user