Skip to content

Commit

Permalink
fix: stats
Browse files Browse the repository at this point in the history
  • Loading branch information
jonat75 committed Jan 15, 2025
1 parent 5019b8b commit 76cac0c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export class PostgresPublicStatsRepo implements IPublicStatsRepo {
FROM
${this.declarationTable}
WHERE
year >= EXTRACT(YEAR FROM CURRENT_DATE) - 4
year > ${PUBLIC_CURRENT_YEAR} - 3
AND year <= ${PUBLIC_CURRENT_YEAR}
AND (data->'entreprise'->'effectif'->'tranche')::text IS NOT NULL
GROUP BY
year, workforce_range
Expand Down

0 comments on commit 76cac0c

Please sign in to comment.