diff --git a/app/entreprises/routes.py b/app/entreprises/routes.py index 99d1cabe..862fe178 100644 --- a/app/entreprises/routes.py +++ b/app/entreprises/routes.py @@ -525,7 +525,7 @@ def export_entreprises(): keys = ["siret", "nom", "adresse", "ville", "codepostal", "pays"] titles = keys[:] L = [ - [entreprise.to_dict_export().get(k, "") for k in keys] + [entreprise.to_dict().get(k, "") for k in keys] for entreprise in entreprises ] title = "entreprises" @@ -543,7 +543,7 @@ def export_contacts(): keys = ["nom", "prenom", "telephone", "mail", "poste", "service"] titles = keys[:] L = [ - [contact.to_dict_export().get(k, "") for k in keys] for contact in contacts + [contact.to_dict().get(k, "") for k in keys] for contact in contacts ] title = "contacts" xlsx = sco_excel.excel_simple_table(titles=titles, lines=L, sheet_name=title)