{% extends "base.html" %} {% block body %} {% for name, data in {'prod': prod, 'hamster': hamster}.items() %}

{{ name }}

{% for geo in ['MSK', 'MAN', 'SAS', 'VLA', 'ALL'] %} {% set geo_len = [0] %} {% set total_cnt = [0] %} {% for typ in data[geo] %} {% for i in data[geo][typ] %} {% if geo_len.append(geo_len.pop() + 1) %}{% endif %} {% endfor %} {% endfor %} {% for typ in ['BALANCER', 'NOAPACHE', 'UPPER', 'MMETA', 'INTL2', 'INT', 'BASE'] %} {% for i in data[geo][typ] %} {% if total_cnt.append(total_cnt.pop() + 1) %}{% endif %} {% if total_cnt[0] == 1 %} {% endif %} {% if loop.index == 1 %} {% endif %} {% endfor %} {% endfor %} {% endfor %}
geotypegroupalive ialive h
{{ geo }}{{ typ }}{{ i['name'] }} {{ i['i']['alive'] }} / {{ i['i']['alive'] + i['i']['dead'] }} {{ i['h']['alive'] }} / {{ i['h']['alive'] + i['h']['dead'] }}
{% endfor %} {% endblock %}