Skip to content

Commit

Permalink
fix: export csv-with-lang
Browse files Browse the repository at this point in the history
  • Loading branch information
fufeck committed May 21, 2024
1 parent c3c5905 commit e99cd4d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/formatters/csv-bal.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,9 @@ function buildRow(voie, numero, position, {includesAlt = false, includesAllLang
cad_parcelles: numero.parcelles ? numero.parcelles.join('|') : '',
source: getSource(numero.sourcePosition) || getSource(voie.sourceNomVoie) || '',
date_der_maj: numero.dateMAJ || '',
certification_commune: numero.certifie ? '1' : '0'
}

if (includesAlt) {
row.push(...addIncludeAlt(voie, numero))
}

if (includesAllLang) {
row.push(...addIncludeAllLang(voie, numero))
certification_commune: numero.certifie ? '1' : '0',
...(includesAlt && addIncludeAlt(voie, numero)),
...(includesAllLang && addIncludeAllLang(voie, numero))
}

if (position) {
Expand Down

0 comments on commit e99cd4d

Please sign in to comment.