From 04fbe06c18c78ee2303f45570c5a37fd0a680928 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Fri, 17 Jan 2025 18:39:21 +0100 Subject: [PATCH] Fix queue sorting for real It was passing the display text to the sort function, not the enum value, so only worked by accident. Refactor/rename things a bit to make this more clear. Also give the unknown/unprocessed state a higher priority, so it shows up before the finished builds. Same for manual builds, since they require user action. --- app/templates/queue.html | 6 +++--- app/web.py | 31 ++++++++++++++++++++----------- 2 files changed, 23 insertions(+), 14 deletions(-) diff --git a/app/templates/queue.html b/app/templates/queue.html index 4be5173..8f0d146 100644 --- a/app/templates/queue.html +++ b/app/templates/queue.html @@ -79,12 +79,12 @@ → {{ srcinfo.build_version }} - {{ status[0].status }} + {{ status[0].status_text }} {% for s in status %} {% if s.urls %}
- {{ s.type }}: + {{ s.build_type }}: {% for key, value in s.urls.items() -%} {% if not loop.first %} / {% endif %}{{ key }} {%- endfor -%} @@ -95,7 +95,7 @@