From: Michael Tremer Date: Thu, 23 Jan 2025 13:51:16 +0000 (+0000) Subject: builds: Fix order after grouping X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c694fd3b82b36e1d29e92c93270b164f651fc67a;p=pbs.git 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 --- 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 }}