From 2d944babe50fa2899f5966a86f68e400f0109f94 Mon Sep 17 00:00:00 2001 From: Richard Hitier Date: Tue, 27 Apr 2021 16:16:06 +0200 Subject: [PATCH] CSV column keys are now UPPER --- app/commands/commands.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/app/commands/commands.py b/app/commands/commands.py index 5814773..f62f68b 100644 --- a/app/commands/commands.py +++ b/app/commands/commands.py @@ -62,16 +62,15 @@ def feed_from_irap(csv_file_name): rows.append(row) firstname_key = 'NOM' - secondname_key = 'prénom' + secondname_key = 'PRÉNOM' status_key = 'STATUT' - virtual_key = 'virtuel' - company_key = 'société' + virtual_key = 'VIRTUEL' + company_key = 'SOCIÉTÉ' bap_key = 'BAP' grade_key = 'GRADE CORPS' project_key = 'PROJETS' - service_key = 'Groupe métier' - # typology_title = 'TYPOLOGIE' - # thematic_title = 'thématique' + service_key = 'GROUPE MÉTIER' + categorie_keys = ['TYPOLOGIE', 'THÉMATIQUE'] # Get the columns values # @@ -82,8 +81,6 @@ def feed_from_irap(csv_file_name): grades = [] companies = [] statuses = [] - # thematics = [] - # typologies = [] for r in rows: # thematics.push( r[thematic_title]) # typologies.push( r[typology_title]) -- libgit2 0.21.2