From 45a8b31cf1042b57765f480e428edfecea8f9123 Mon Sep 17 00:00:00 2001 From: Arthur ZHU Date: Tue, 28 Dec 2021 21:26:36 +0100 Subject: [PATCH] correction --- app/entreprises/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)