79501138

Date: 2025-03-11 14:46:21
Score: 2
Natty:
Report link

I cannot comment, but I just want to leave my information here. The answer from VKolev doesn't work if the lists have the exact same number of elements, in that case you have to use loop.index0. Since in jinja, loop.index is 1-indexed and loop.index0 is 0-indexed.

{% for concepto in conceptos %}
<tr>
  <td>{{concepto.0}}</td>
  <td>{{operas[loop.index0]}}</td>
  <td>{{concepto.1}}</td>
  <td>{{operas[loop.index0]}}</td>
  <td>...</td>
</tr>
{% endfor %}
Reasons:
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (1): cannot comment
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: sasjafor