forked from ScoDoc/ScoDoc
format code
This commit is contained in:
parent
45a8b31cf1
commit
6fd234ef85
@ -542,9 +542,7 @@ def export_contacts():
|
|||||||
if contacts:
|
if contacts:
|
||||||
keys = ["nom", "prenom", "telephone", "mail", "poste", "service"]
|
keys = ["nom", "prenom", "telephone", "mail", "poste", "service"]
|
||||||
titles = keys[:]
|
titles = keys[:]
|
||||||
L = [
|
L = [[contact.to_dict().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"
|
title = "contacts"
|
||||||
xlsx = sco_excel.excel_simple_table(titles=titles, lines=L, sheet_name=title)
|
xlsx = sco_excel.excel_simple_table(titles=titles, lines=L, sheet_name=title)
|
||||||
filename = title
|
filename = title
|
||||||
|
Loading…
Reference in New Issue
Block a user