@tricoteuses/senat 2.20.24 → 2.20.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -129,7 +129,12 @@ const findAllAmendementsQuery = dbSenat
129
129
  "ameli.avigvt.lib as avis_gouvernement",
130
130
  eb.fn.coalesce("ameli.sor.lib", "ameli.irr.libirr").as("sort"),
131
131
  "ameli.amd.rev as revision",
132
- concat(val("https://www.senat.fr/amendements/"), ref("ameli.ses.ann"), val("-"), sql `(ameli.ses.ann + 1)`, val("/"), ref("ameli.txt_ameli.numabs"), val("/Amdt_"), ref("ameli.amd.num"), val(".html")).as("url"),
132
+ concat(eb
133
+ .case()
134
+ .when("ameli.amd.num", "like", "%COM%")
135
+ .then(val("https://www.senat.fr/amendements/commissions/"))
136
+ .else(val("https://www.senat.fr/amendements/"))
137
+ .end(), ref("ameli.ses.ann"), val("-"), sql `(ameli.ses.ann + 1)`, val("/"), ref("ameli.txt_ameli.numabs"), val("/Amdt_"), ref("ameli.amd.num"), val(".html")).as("url"),
133
138
  "ameli.grppol_ameli.lilcou as au_nom_de_groupe_politique",
134
139
  "ameli.com_ameli.lil as au_nom_de_commission",
135
140
  eb.case().when("ameli.cab.entid", "is not", null).then(true).else(false).end().as("auteur_est_gouvernement"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tricoteuses/senat",
3
- "version": "2.20.24",
3
+ "version": "2.20.25",
4
4
  "description": "Handle French Sénat's open data",
5
5
  "keywords": [
6
6
  "France",