Remove cut task
This commit is contained in:
1 parent
52205be6af
commit
12508bda83
2 files changed
-11
No files matched your search
@@ -121,16 +121,6 @@ class PrintQueue:
|
|||||||
"log" : task.log,
|
"log" : task.log,
|
||||||
}
|
}
|
||||||
|
|
||||||
if task.task_type == TaskType.CUT:
|
|
||||||
return {
|
|
||||||
"task_id": task_id,
|
|
||||||
"status": task.status,
|
|
||||||
"type": task.task_type,
|
|
||||||
"position": index,
|
|
||||||
"in_queue": True,
|
|
||||||
"log" : task.log,
|
|
||||||
}
|
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def mark_completed(self, task_id, task_status, log=None):
|
def mark_completed(self, task_id, task_status, log=None):
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ class TaskType(Enum):
|
|||||||
|
|
||||||
TEXT = "text"
|
TEXT = "text"
|
||||||
IMAGE = "image"
|
IMAGE = "image"
|
||||||
CUT = "cut"
|
|
||||||
QR = "qr"
|
QR = "qr"
|
||||||
REMOVE = "remove"
|
REMOVE = "remove"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user