Met à jour les taux de mobilité
parent
3d475f8709
commit
3bc0ea2cbb
|
@ -1,8 +1,8 @@
|
|||
import { writeInDataDir } from './utils.js'
|
||||
|
||||
const CURRENT_YEAR = 2022
|
||||
const CURRENT_YEAR = 2023
|
||||
const CSV_URL =
|
||||
'https://fichierdirect.declaration.urssaf.fr/static/tauxTransport.20220720.csv'
|
||||
'https://fichierdirect.declaration.urssaf.fr/static/tauxTransport.20230928.csv'
|
||||
|
||||
const INDEX = {
|
||||
TAUX: 2,
|
||||
|
@ -26,10 +26,10 @@ const data = rawCSV
|
|||
+a[INDEX.CODE_COMMUNE] < +b[INDEX.CODE_COMMUNE]
|
||||
? -1
|
||||
: +a[INDEX.CODE_COMMUNE] > +b[INDEX.CODE_COMMUNE]
|
||||
? 1
|
||||
: a[INDEX.DATE_EFFET] > b[INDEX.DATE_EFFET]
|
||||
? -1
|
||||
: 1
|
||||
? 1
|
||||
: a[INDEX.DATE_EFFET] > b[INDEX.DATE_EFFET]
|
||||
? -1
|
||||
: 1
|
||||
)
|
||||
.reduce(
|
||||
(acc, r) => ({
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue