From 6fd234ef8571c275070657990e7e989b1da52acf Mon Sep 17 00:00:00 2001 From: Arthur ZHU Date: Wed, 29 Dec 2021 10:36:45 +0100 Subject: [PATCH] format code --- app/entreprises/routes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/entreprises/routes.py b/app/entreprises/routes.py index 862fe1785..50ea4de90 100644 --- a/app/entreprises/routes.py +++ b/app/entreprises/routes.py @@ -542,9 +542,7 @@ def export_contacts(): if contacts: keys = ["nom", "prenom", "telephone", "mail", "poste", "service"] titles = keys[:] - L = [ - [contact.to_dict().get(k, "") for k in keys] for contact in contacts - ] + L = [[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) filename = title