@tricoteuses/senat 3.1.10 → 3.1.11
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.
|
@@ -128,6 +128,7 @@ export function buildActesLegislatifs(dossier) {
|
|
|
128
128
|
datesSeances.sort(compareByDate);
|
|
129
129
|
const premiereSeance = datesSeances[0];
|
|
130
130
|
if (premiereSeance && premiereSeance.date) {
|
|
131
|
+
const texteAvantSeance = textesTries.find((t) => (t.origine || "").toLowerCase().includes("de la commission"));
|
|
131
132
|
actes.push({
|
|
132
133
|
code_acte: `${phasePrefix}-DEBATS-SEANCE`,
|
|
133
134
|
date: premiereSeance.date,
|
|
@@ -138,11 +139,14 @@ export function buildActesLegislatifs(dossier) {
|
|
|
138
139
|
chambre: "SN",
|
|
139
140
|
signet_dossier: loiSignet,
|
|
140
141
|
code_organisme: null,
|
|
142
|
+
texte_url: texteAvantSeance?.url ?? null,
|
|
141
143
|
});
|
|
142
144
|
}
|
|
143
145
|
}
|
|
144
146
|
const texteFinal = [...textesTries].reverse().find((t) => {
|
|
145
147
|
const origine = (t.origine || "").toLowerCase();
|
|
148
|
+
if (origine.includes("de la commission"))
|
|
149
|
+
return false;
|
|
146
150
|
return (origine.includes("adopté") ||
|
|
147
151
|
origine.includes("rejeté") ||
|
|
148
152
|
origine.includes("devenu résolution") ||
|
|
@@ -157,9 +161,7 @@ export function buildActesLegislatifs(dossier) {
|
|
|
157
161
|
else if (origine.includes("devenue résolution")) {
|
|
158
162
|
libelleStatut = "Adopté";
|
|
159
163
|
}
|
|
160
|
-
|
|
161
|
-
// On utilise COM-CAE-DEC plutôt que DEBATS-DEC pour refléter l'absence de séance plénière
|
|
162
|
-
const codeActeDecision = (texteFinal.origine || "").toLowerCase().includes("devenu résolution")
|
|
164
|
+
const codeActeDecision = origine.includes("devenu résolution")
|
|
163
165
|
? `${phasePrefix}-COM-CAE-DEC`
|
|
164
166
|
: `${phasePrefix}-DEBATS-DEC`;
|
|
165
167
|
actes.push({
|