Loading back/myfab/api.py +1 −1 Original line number Diff line number Diff line Loading @@ -270,7 +270,7 @@ def dequeue_request(req_id): if req.queue_element == None: return jsonify({"error": "Not queued"}), status.HTTP_404_NOT_FOUND dequque_apply(req) dequeue_apply(req) return jsonify({}) @app.route("/requests/<req_id>", methods=["PUT"]) Loading back/myfab/queue.py +1 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ def create_queue(name, weight, meta): def get_queue_elements_list(qid): elems = [] for ql in PrintRequest.select().join(QueueElement).where((QueueElement.queue == qid and QueueElement.state == QUEUE_ELEMENT_STATE_INQUEUE)).order_by(QueueElement.id): for ql in PrintRequest.select().join(QueueElement).where((QueueElement.queue.id == qid and QueueElement.state == QUEUE_ELEMENT_STATE_INQUEUE)).order_by(QueueElement.id): elems.append({ "id": ql.id, "author": ql.author.fullname, Loading Loading
back/myfab/api.py +1 −1 Original line number Diff line number Diff line Loading @@ -270,7 +270,7 @@ def dequeue_request(req_id): if req.queue_element == None: return jsonify({"error": "Not queued"}), status.HTTP_404_NOT_FOUND dequque_apply(req) dequeue_apply(req) return jsonify({}) @app.route("/requests/<req_id>", methods=["PUT"]) Loading
back/myfab/queue.py +1 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ def create_queue(name, weight, meta): def get_queue_elements_list(qid): elems = [] for ql in PrintRequest.select().join(QueueElement).where((QueueElement.queue == qid and QueueElement.state == QUEUE_ELEMENT_STATE_INQUEUE)).order_by(QueueElement.id): for ql in PrintRequest.select().join(QueueElement).where((QueueElement.queue.id == qid and QueueElement.state == QUEUE_ELEMENT_STATE_INQUEUE)).order_by(QueueElement.id): elems.append({ "id": ql.id, "author": ql.author.fullname, Loading