lse %}
                                            {% set _ = months[month].by_card.update({expense.card_used: expense.amount}) %}
                                        {% endif %}
                                    {% endif %}
                                {% endfor %}
                                
                                {% for month, data in months.items()|sort(reverse=true) %}
                                <tr class="expense-month-row" data-month="{{ month }}">
                        