Skip to content

Commit

Permalink
Parse surface carrez as float
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesboeufs committed Apr 26, 2019
1 parent 34ca335 commit 00c0f16
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions improve-csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ function convertRow(row, {culturesMap, culturesSpecialesMap}) {
id_parcelle: getIdParcelle(row),
numero_volume: row['No Volume'],
lot1_numero: row['1er lot'],
lot1_surface_carrez: row['Surface Carrez du 1er lot'],
lot1_surface_carrez: parseFloat(row['Surface Carrez du 1er lot']) || '',
lot2_numero: row['2e lot'],
lot2_surface_carrez: row['Surface Carrez du 2e lot'],
lot2_surface_carrez: parseFloat(row['Surface Carrez du 2e lot']) || '',
lot3_numero: row['3e lot'],
lot3_surface_carrez: row['Surface Carrez du 3e lot'],
lot3_surface_carrez: parseFloat(row['Surface Carrez du 3e lot']) || '',
lot4_numero: row['4e lot'],
lot4_surface_carrez: row['Surface Carrez du 4e lot'],
lot4_surface_carrez: parseFloat(row['Surface Carrez du 4e lot']) || '',
lot5_numero: row['5e lot'],
lot5_surface_carrez: row['Surface Carrez du 5e lot'],
lot5_surface_carrez: parseFloat(row['Surface Carrez du 5e lot']) || '',
nombre_lots: row['Nombre de lots'],
code_type_local: row['Code type local'],
type_local: row['Type local'],
Expand Down

0 comments on commit 00c0f16

Please sign in to comment.