Met à jour les taux de mobilité

pull/2825/head
Johan Girod 2023-09-28 18:03:46 +02:00
parent 3d475f8709
commit 3bc0ea2cbb
2 changed files with 2615 additions and 2107 deletions

View File

@ -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