@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.
- package/lib/model/ameli.js +6 -1
- package/package.json +1 -1
package/lib/model/ameli.js
CHANGED
|
@@ -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(
|
|
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"),
|