From 668fdc59006ff00e5aa7483cad3be1a39585c727 Mon Sep 17 00:00:00 2001 From: Nekori Date: Fri, 23 Apr 2021 18:24:17 +0200 Subject: [PATCH] Tags Ressource redirect --- html/export_yaml_to_html.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/export_yaml_to_html.py b/html/export_yaml_to_html.py index 8b6db43..40ea420 100644 --- a/html/export_yaml_to_html.py +++ b/html/export_yaml_to_html.py @@ -120,11 +120,11 @@ template = env.from_string(""" {{categorie.capitalize()}} {#- Gestion des tableaux #} - {% if categorie == "motscles" or categorie == "ressources" -%} + {% if categorie == "motscles" -%}
{% for mot in valeur %}{{mot}}{% endfor %}
{#- Gestion des saes #} - {% elif categorie == "sae" %} -
{% for sae in valeur %}{{sae}}{% endfor %}
+ {% elif categorie == "sae" or categorie == "ressources" %} +
{% for val in valeur %}{{val}}{% endfor %}
{#- Gestion des ACS #} {% elif categorie == "acs" -%}
{% for rt,acs in valeur.items() %}{% for ac in acs %}{{ac}}{% endfor %}{% endfor %}