From 67f5c1c9ff9a7df96f0d6befbf6bfe544a19cdcb Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Fri, 29 Sep 2023 14:32:24 -0700 Subject: [PATCH] Get all packages on all arches, but only one of each name --- templates/maintainer_overview.html | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/templates/maintainer_overview.html b/templates/maintainer_overview.html index cc77f0a..1b169c9 100644 --- a/templates/maintainer_overview.html +++ b/templates/maintainer_overview.html @@ -9,17 +9,30 @@

This page layout is currently being worked on. It will look better soon.

+{% set maintainer_namespace = namespace() %} +{% set maintainer_namespace.package_list=[] %} {% for workload_conf_id in query.workloads(None,None,None,None,output_change="workload_conf_ids") %} {% if query.configs.workloads[workload_conf_id].maintainer == maintainer %} {% for repo_id in query.configs.workloads[workload_conf_id].labels %} +{% set maintainer_namespace.package_list=[] %} +{% for package in query.configs.workloads[workload_conf_id].packages %} + {% if package not in maintainer_namespace.package_list %} + {% set maintainer_namespace.package_list = maintainer_namespace.package_list + [package] %} + {% endif %} +{% endfor %} +{% for parch in query.configs.workloads[workload_conf_id].arch_packages %} + {% for package in query.configs.workloads[workload_conf_id].arch_packages[parch] %} + {% if package not in maintainer_namespace.package_list %} + {% set maintainer_namespace.package_list = maintainer_namespace.package_list + [package] %} + {% endif %} + {% endfor %} +{% endfor %} {{query.configs.workloads[workload_conf_id].name}} - {{repo_id}} {% endfor %} {% endif %}