📈 ajoute les mois M - 3 et M - 4 aux stats
parent
8d4a8f7c20
commit
5e298dc112
|
@ -61,7 +61,9 @@ async function fetchSimulatorsMonth() {
|
|||
return {
|
||||
currentMonth: await getDataFromXMonthAgo(0),
|
||||
oneMonthAgo: await getDataFromXMonthAgo(1),
|
||||
twoMonthAgo: await getDataFromXMonthAgo(2)
|
||||
twoMonthAgo: await getDataFromXMonthAgo(2),
|
||||
threeMonthAgo: await getDataFromXMonthAgo(3),
|
||||
fourMonthAgo: await getDataFromXMonthAgo(4)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,13 @@ import { useSimulatorsMetadata } from '../Simulateurs/Home'
|
|||
|
||||
const stats: StatsData = statsJson as any
|
||||
|
||||
const monthPeriods = ['currentMonth', 'oneMonthAgo', 'twoMonthAgo'] as const
|
||||
const monthPeriods = [
|
||||
'currentMonth',
|
||||
'oneMonthAgo',
|
||||
'twoMonthAgo',
|
||||
'threeMonthAgo',
|
||||
'fourMonthAgo'
|
||||
] as const
|
||||
type MonthPeriod = typeof monthPeriods[number]
|
||||
|
||||
type Periodicity = 'daily' | 'monthly'
|
||||
|
|
Loading…
Reference in New Issue