{% extends "base.html" %} {% block content %}
{% for brick in inventory_list %} {% if brick[5] == 'nil' %} {% else %} {% endif %} {% endfor %}
Name Color Qty Missing
{{ brick[3] }}{{ brick[3] }}{{ brick[3] }} {{ brick[7] }} {{ brick[8] }}
{% set ns = namespace(count='') %}
{% for missing in missing_list %} {% if missing[1] == brick[1] and missing[2] == brick[2] and missing[3] == brick[6] and (missing[5] == brick[10] or missing[5] == 'brick[10]' or missing[5] == 'None') %} {% set ns.count = missing[4] %} {% endif %} {% endfor %}
{% if minifig_list | length > 0 %}

Minifigs

{% for fig in minifig_list %}

{{ fig[2] }} ({{ fig[0] }})

{% if fig[4] == None %} {{ fig[2] }} {% else %} {{ fig[2] }} {% endif %} X {{ fig[3] }}
{% for parts in minifig_inventory_list %} {% for part in parts %} {% if part[0] == fig[0] %} {% if part[5] == 'nil' %} {% else %} {% endif %} {% endif %} {% endfor %} {% endfor %}
Name Color Qty Missing
{{ part[3] }}{{ part[3] }}{{ part[3] }} {{ part[7] }} {{ part[8] * fig[3] }}
{% set ns = namespace(count='') %}
{% for missing in missing_list %} {% if missing[1] == part[1] and missing[2] == part[2] and missing[3] == part[6] and (missing[5] == part[10] or missing[5] == 'part[10]' or missing[5] == 'None') %} {% set ns.count = missing[4] %} {% endif %} {% endfor %}
{% endfor %} {% endif %} {% endblock %} {% block scripts %} {% endblock %}