diff options
Diffstat (limited to 'templates/duplicate_search.html')
-rw-r--r-- | templates/duplicate_search.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/duplicate_search.html b/templates/duplicate_search.html new file mode 100644 index 0000000..0c96266 --- /dev/null +++ b/templates/duplicate_search.html @@ -0,0 +1,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 %}
\ No newline at end of file |