Verified Commit 6ef062a8 authored by Grégor JOUET's avatar Grégor JOUET 🔧
Browse files

Fix queue

parent f2ed8290
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ def create_queue(name, weight, meta):

def get_queue_elements_list(qid):
    elems = []
    for ql in PrintRequest.select().join(QueueElement, on=(PrintRequest.queue_element == QueueElement.id)).where((QueueElement.queue.id == qid and QueueElement.state == QUEUE_ELEMENT_STATE_INQUEUE)).order_by(QueueElement.id):
    for ql in PrintRequest.select().join(QueueElement, on=(PrintRequest.queue_element == QueueElement.id)).where((QueueElement.queue == qid and QueueElement.state == QUEUE_ELEMENT_STATE_INQUEUE)).order_by(QueueElement.id):
       elems.append({
            "id": ql.id,
            "author": ql.author.fullname,
+2 −2
Original line number Diff line number Diff line
@@ -33,13 +33,13 @@
              <v-card-subtitle align="left">
                In Queue: 
                <div v-for="elem in item.elements" :key="elem.id">
                  <div><v-icon>mdi-folder-cog</v-icon> {{ elem.title }} <v-icon>mdi-account</v-icon> {{ elem.author }}
                  <div><v-icon>mdi-folder-cog</v-icon> {{ elem.title }} 
                  <v-btn @click="dequeue(elem.id)"><v-icon color="red">mdi-close-octagon</v-icon></v-btn>
                  </div>
                </div>
              </v-card-subtitle>
            </v-card>
            
            <!-- <v-icon>mdi-account</v-icon> {{ elem.author }} -->
          </v-flex>
        </v-layout>
        <v-card>