Skip to content

Commit

Permalink
Export : ajouter la property Siae.kind_parent (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn authored Nov 9, 2023
1 parent d375910 commit e3baa34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lemarche/utils/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"siret", # siret_pretty ?
"nature",
"kind",
"kind_parent",
"presta_type",
"contact_website",
# "contact_email",
Expand Down Expand Up @@ -106,7 +107,7 @@ def export_siae_to_excel(siae_queryset, with_contact_info=False):
# header
font_style = xlwt.XFStyle()
font_style.font.bold = True
for (index, header_item) in enumerate(generate_header(field_list)):
for index, header_item in enumerate(generate_header(field_list)):
ws.write(row_number, index, header_item, font_style)
# set column width
# ws.col(col_num).width = HEADER[col_num][1]
Expand All @@ -117,7 +118,7 @@ def export_siae_to_excel(siae_queryset, with_contact_info=False):
for siae in siae_queryset:
row_number += 1
siae_row = generate_siae_row(siae, field_list)
for (index, row_item) in enumerate(siae_row):
for index, row_item in enumerate(siae_row):
ws.write(row_number, index, row_item, font_style)

return wb

0 comments on commit e3baa34

Please sign in to comment.