Commit 2d944babe50fa2899f5966a86f68e400f0109f94

Authored by hitier
1 parent 2d277715

CSV column keys are now UPPER

Showing 1 changed file with 5 additions and 8 deletions   Show diff stats
app/commands/commands.py
@@ -62,16 +62,15 @@ def feed_from_irap(csv_file_name): @@ -62,16 +62,15 @@ def feed_from_irap(csv_file_name):
62 rows.append(row) 62 rows.append(row)
63 63
64 firstname_key = 'NOM' 64 firstname_key = 'NOM'
65 - secondname_key = 'prénom' 65 + secondname_key = 'PRÉNOM'
66 status_key = 'STATUT' 66 status_key = 'STATUT'
67 - virtual_key = 'virtuel'  
68 - company_key = 'société' 67 + virtual_key = 'VIRTUEL'
  68 + company_key = 'SOCIÉTÉ'
69 bap_key = 'BAP' 69 bap_key = 'BAP'
70 grade_key = 'GRADE CORPS' 70 grade_key = 'GRADE CORPS'
71 project_key = 'PROJETS' 71 project_key = 'PROJETS'
72 - service_key = 'Groupe métier'  
73 - # typology_title = 'TYPOLOGIE'  
74 - # thematic_title = 'thématique' 72 + service_key = 'GROUPE MÉTIER'
  73 + categorie_keys = ['TYPOLOGIE', 'THÉMATIQUE']
75 74
76 # Get the columns values 75 # Get the columns values
77 # 76 #
@@ -82,8 +81,6 @@ def feed_from_irap(csv_file_name): @@ -82,8 +81,6 @@ def feed_from_irap(csv_file_name):
82 grades = [] 81 grades = []
83 companies = [] 82 companies = []
84 statuses = [] 83 statuses = []
85 - # thematics = []  
86 - # typologies = []  
87 for r in rows: 84 for r in rows:
88 # thematics.push( r[thematic_title]) 85 # thematics.push( r[thematic_title])
89 # typologies.push( r[typology_title]) 86 # typologies.push( r[typology_title])