Loading back/myfab/queue.py +1 −0 Original line number Diff line number Diff line Loading @@ -76,6 +76,7 @@ def remove_queue(qid): if not get_queue_by_id(qid): return log.info(f'Deleting queue with id {qid}') PrintRequest.update(queue_element = None).where(PrintRequest.queue_element == qid).execute() QueueElement.delete().where(QueueElement.queue == qid).execute() PrinterQueue.delete().where(PrinterQueue.queue == qid).execute() Queue.delete().where(Queue.id == qid).execute() Loading Loading
back/myfab/queue.py +1 −0 Original line number Diff line number Diff line Loading @@ -76,6 +76,7 @@ def remove_queue(qid): if not get_queue_by_id(qid): return log.info(f'Deleting queue with id {qid}') PrintRequest.update(queue_element = None).where(PrintRequest.queue_element == qid).execute() QueueElement.delete().where(QueueElement.queue == qid).execute() PrinterQueue.delete().where(PrinterQueue.queue == qid).execute() Queue.delete().where(Queue.id == qid).execute() Loading