{% for bucket, results in data.items() %} {% if results %}
{{bucket}}
{% endif %} {% endfor %}