From c694fd3b82b36e1d29e92c93270b164f651fc67a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 23 Jan 2025 13:51:16 +0000 Subject: [PATCH] builds: Fix order after grouping It looks like groupby() is sorting the groups before it returns them which results in our original order being removed. We simply want to have the most recent build at the top. Signed-off-by: Michael Tremer --- src/templates/builds/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/builds/index.html b/src/templates/builds/index.html index a7babe03..6a303d24 100644 --- a/src/templates/builds/index.html +++ b/src/templates/builds/index.html @@ -37,7 +37,7 @@
{# Render all builds #} - {% for date, items in builds | groupby("date") %} + {% for date, items in builds | groupby("date") | reverse %}

{{ date | format_day }} -- 2.47.2