From 33590e1c10124782ef1dd709b982bbeef661b44f Mon Sep 17 00:00:00 2001 From: alazo Date: Thu, 3 May 2018 09:30:46 +0200 Subject: [PATCH] Include IMPUTATIONS_EXPORT_FIELDS in imputation_export function --- stages/views.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/stages/views.py b/stages/views.py index 1244646..24d3239 100644 --- a/stages/views.py +++ b/stages/views.py @@ -864,14 +864,13 @@ def stages_export(request, scope=None): return export.get_http_response('stages_export') -IMPUTATIONS_EXPORT_FIELDS = [ - 'Nom', 'Prénom', 'Report passé', 'Ens', 'Discipline', - 'Accomp.', 'Discipline', 'Total payé', 'Indice', 'Taux', 'Report futur', - 'ASA', 'ASSC', 'ASE', 'MP', 'EDEpe', 'EDEps', 'EDS', 'CAS_FPP', 'Direction' -] - - def imputations_export(request): + IMPUTATIONS_EXPORT_FIELDS = [ + 'Nom', 'Prénom', 'Report passé', 'Ens', 'Discipline', + 'Accomp.', 'Discipline', 'Total payé', 'Indice', 'Taux', 'Report futur', + 'ASA', 'ASSC', 'ASE', 'MP', 'EDEpe', 'EDEps', 'EDS', 'CAS_FPP', 'Direction' + ] + export = OpenXMLExport('Imputations') export.write_line(IMPUTATIONS_EXPORT_FIELDS, bold=True) # Headers