@tricoteuses/senat 2.20.6 → 2.20.7
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 +2 -1
- package/package.json +1 -1
package/lib/model/ameli.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { sql } from "kysely";
|
|
1
2
|
import { jsonArrayFrom } from "kysely/helpers/postgres";
|
|
2
3
|
import { dbSenat } from "../databases";
|
|
3
4
|
import { concat, toDateString } from "./util";
|
|
@@ -122,7 +123,7 @@ const findAllAmendementsQuery = dbSenat
|
|
|
122
123
|
"ameli.avigvt.lib as avis_gouvernement",
|
|
123
124
|
eb.fn.coalesce("ameli.sor.lib", "ameli.irr.libirr").as("sort"),
|
|
124
125
|
"ameli.amd.rev as revision",
|
|
125
|
-
concat(val("https://www.senat.fr/amendements/"), ref("ameli.ses.
|
|
126
|
+
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.numabs"), val(".html")).as("url"),
|
|
126
127
|
"ameli.grppol_ameli.lilcou as au_nom_de_groupe_politique",
|
|
127
128
|
"ameli.com_ameli.lil as au_nom_de_commission",
|
|
128
129
|
eb.case().when("ameli.cab.entid", "is not", null).then(true).else(false).end().as("auteur_est_gouvernement"),
|