From f427a3317931c61471ca1442129bd33f9deb383d Mon Sep 17 00:00:00 2001 From: Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com> Date: Fri, 21 May 2021 21:41:38 +0200 Subject: initial commit to remove duplicates --- templates/results_persons.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'templates/results_persons.html') diff --git a/templates/results_persons.html b/templates/results_persons.html index 65fac98..34057a2 100644 --- a/templates/results_persons.html +++ b/templates/results_persons.html @@ -8,10 +8,10 @@ {% for row in results %} {% set test_list = [] %} {% for elem in row.statut_org_association %} + {% set my_dict = {} %} {% if selection_method == "actual_results" and elem.vymaz_datum != 0 %} {% set xxx = [] %} {% else %} - {% set my_dict = {} %} {% set x = my_dict.__setitem__("adresa", elem.adresa) %} {% set x = my_dict.__setitem__("funkce", elem.funkce) %} {% set x = my_dict.__setitem__("nazev", elem.statutarni_organ.company.nazev) %} @@ -21,15 +21,15 @@ {% set x = my_dict.__setitem__("soud", elem.statutarni_organ.company.soud) %} {% set x = my_dict.__setitem__("zapis", elem.statutarni_organ.company.zapis) %} {% set x = my_dict.__setitem__("pravni_forma", elem.statutarni_organ.company.current_legal_form_text()) %} - {% set test_list = test_list.append(my_dict) %} + {% include 'duplicate_search.html' %} {% endif %} {% endfor %} {% for elem in row.supervisory_board_member_association %} + {% set my_dict = {} %} {% if selection_method == "actual_results" and elem.vymaz_datum != 0 %} {% set xxx = [] %} {% else %} - {% set my_dict = {} %} {% set x = my_dict.__setitem__("adresa", elem.adresa) %} {% set x = my_dict.__setitem__("funkce", elem.funkce) %} {% set x = my_dict.__setitem__("nazev", elem.dozorci_rada.company.nazev) %} @@ -39,15 +39,15 @@ {% set x = my_dict.__setitem__("soud", elem.dozorci_rada.company.soud) %} {% set x = my_dict.__setitem__("zapis", elem.dozorci_rada.company.zapis) %} {% set x = my_dict.__setitem__("pravni_forma", elem.dozorci_rada.company.current_legal_form_text()) %} - {% set test_list = test_list.append(my_dict) %} - {% endif %} - {% endfor %} + {% include 'duplicate_search.html' %} + {% endif %} + {% endfor %} {% for elem in row.spolecnik_association %} + {% set my_dict = {} %} {% if selection_method == "actual_results" and elem.vymaz_datum != 0 %} {% set xxx = [] %} {% else %} - {% set my_dict = {} %} {% set x = my_dict.__setitem__("adresa", elem.adresa) %} {% set x = my_dict.__setitem__("funkce", "společník") %} {% set x = my_dict.__setitem__("nazev", elem.company.nazev) %} @@ -57,15 +57,15 @@ {% set x = my_dict.__setitem__("soud", elem.company.soud) %} {% set x = my_dict.__setitem__("zapis", elem.company.zapis) %} {% set x = my_dict.__setitem__("pravni_forma", elem.company.current_legal_form_text()) %} - {% set test_list = test_list.append(my_dict) %} - {% endif %} - {% endfor %} + {% include 'duplicate_search.html' %} + {% endif %} + {% endfor %} {% for elem in row.sole_shareholder_association %} + {% set my_dict = {} %} {% if selection_method == "actual_results" and elem.vymaz_datum != 0 %} {% set xxx = [] %} {% else %} - {% set my_dict = {} %} {% set x = my_dict.__setitem__("adresa", elem.adresa) %} {% set x = my_dict.__setitem__("funkce", "jediný akcionář") %} {% set x = my_dict.__setitem__("nazev", elem.company.nazev) %} @@ -75,15 +75,15 @@ {% set x = my_dict.__setitem__("soud", elem.company.soud) %} {% set x = my_dict.__setitem__("zapis", elem.company.zapis) %} {% set x = my_dict.__setitem__("pravni_forma", elem.company.current_legal_form_text()) %} - {% set test_list = test_list.append(my_dict) %} + {% include 'duplicate_search.html' %} {% endif %} {% endfor %} {% for elem in row.prokurista_association %} + {% set my_dict = {} %} {% if selection_method == "actual_results" and elem.vymaz_datum != 0 %} {% set xxx = [] %} {% else %} - {% set my_dict = {} %} {% set x = my_dict.__setitem__("adresa", elem.adresa) %} {% set x = my_dict.__setitem__("funkce", "prokurista") %} {% set x = my_dict.__setitem__("nazev", elem.company.nazev) %} @@ -93,9 +93,9 @@ {% set x = my_dict.__setitem__("soud", elem.company.soud) %} {% set x = my_dict.__setitem__("zapis", elem.company.zapis) %} {% set x = my_dict.__setitem__("pravni_forma", elem.company.current_legal_form_text()) %} - {% set test_list = test_list.append(my_dict) %} - {% endif %} - {% endfor %} + {% include 'duplicate_search.html' %} + {% endif %} + {% endfor %} {% for elem in test_list %} {% if count.value % 2 == 0 %} -- cgit