aboutsummaryrefslogtreecommitdiffstats
path: root/templates/duplicate_search.html
blob: 0c96266ca85612280542d690b3e602c09906ef3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19


        
        
        
        
    {% if test_list|length == 0 %}
        {% set test_list = test_list.append(my_dict) %}  
    {% else %}
        {% set duplicity_found = namespace(found=false) %}  
        {% for record in test_list %}
            {% if record.ico == my_dict.ico and record.adresa == my_dict.adresa and record.funkce == my_dict.funkce %}
                {% set duplicity_found.found = true %}
            {% endif %} 
        {% endfor %}
        {% if duplicity_found.found == false %}
            {% set test_list = test_list.append(my_dict) %}
        {% endif %}
    {% endif %}