Skip to content

Commit

Permalink
Fix communes import
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesboeufs committed Jul 26, 2019
1 parent 83e89f4 commit 760a421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/convert/pci.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict'

const {trimStart, deburr, keyBy} = require('lodash')
const communesActuelles = keyBy(require('@etalab/cog/data/communes.json').filter(c => ['commune-actuelle', 'arrondissement-municipal'].includes(c.type)), 'code')
const communesAnciennes = keyBy(require('@etalab/cog/data/communes.json').filter(c => !['commune-actuelle', 'arrondissement-municipal'].includes(c.type)), 'code')
const communesActuelles = keyBy(require('@etalab/decoupage-administratif/data/communes.json').filter(c => ['commune-actuelle', 'arrondissement-municipal'].includes(c.type)), 'code')
const communesAnciennes = keyBy(require('@etalab/decoupage-administratif/data/communes.json').filter(c => !['commune-actuelle', 'arrondissement-municipal'].includes(c.type)), 'code')

const {getCodeCommune} = require('../util/codes')

Expand Down

0 comments on commit 760a421

Please sign in to comment.