{% extends "base.html" %} {% block content %}
{% for brick in inventory_list %} {% if brick[5] == 'nil' %} {% else %} {% endif %} {% endfor %}
Image 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] | string == brick[2] | string and missing[4] == brick[6] and (missing[6] | string == brick[10] | string or missing[6] == 'None') %} {% set ns.count = missing[5] %} {% 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] | string == part[2] | string and missing[4] == part[6] and (missing[6] | string == part[10] | string or missing[6] == 'None') %} {% set ns.count = missing[5] %} {% endif %} {% endfor %}
{% endfor %} {% endif %} {% endblock %} {% block scripts %} {% endblock %}