Commit 2d944babe50fa2899f5966a86f68e400f0109f94
1 parent
2d277715
Exists in
master
and in
4 other branches
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 | 62 | rows.append(row) |
63 | 63 | |
64 | 64 | firstname_key = 'NOM' |
65 | - secondname_key = 'prénom' | |
65 | + secondname_key = 'PRÉNOM' | |
66 | 66 | status_key = 'STATUT' |
67 | - virtual_key = 'virtuel' | |
68 | - company_key = 'société' | |
67 | + virtual_key = 'VIRTUEL' | |
68 | + company_key = 'SOCIÉTÉ' | |
69 | 69 | bap_key = 'BAP' |
70 | 70 | grade_key = 'GRADE CORPS' |
71 | 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 | 75 | # Get the columns values |
77 | 76 | # |
... | ... | @@ -82,8 +81,6 @@ def feed_from_irap(csv_file_name): |
82 | 81 | grades = [] |
83 | 82 | companies = [] |
84 | 83 | statuses = [] |
85 | - # thematics = [] | |
86 | - # typologies = [] | |
87 | 84 | for r in rows: |
88 | 85 | # thematics.push( r[thematic_title]) |
89 | 86 | # typologies.push( r[typology_title]) | ... | ... |