@tricoteuses/senat 3.1.4 → 3.1.6
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.
|
@@ -68,7 +68,7 @@ export interface SenateurResult {
|
|
|
68
68
|
fonctions_bureau: FonctionRow[];
|
|
69
69
|
groupe_politique: string | null;
|
|
70
70
|
groupes: MandatOrganismeRow[];
|
|
71
|
-
|
|
71
|
+
groupes_senatoriaux: MandatOrganismeRow[];
|
|
72
72
|
mandats_senateur: MandatSenateurRow[];
|
|
73
73
|
matricule: string;
|
|
74
74
|
nom_usuel: string | null;
|
|
@@ -52,13 +52,11 @@ async function retrieveAgendas(options, sessions) {
|
|
|
52
52
|
for (const session of sessions) {
|
|
53
53
|
const originalAgendaSessionDir = path.join(originalAgendaDir, `${session}`);
|
|
54
54
|
fs.ensureDirSync(originalAgendaSessionDir);
|
|
55
|
-
|
|
56
|
-
fs.emptyDirSync(originalAgendaSessionDir);
|
|
55
|
+
fs.emptyDirSync(originalAgendaSessionDir);
|
|
57
56
|
const transformedAgendaSessionDir = path.join(transformedAgendaDir, `${session}`);
|
|
58
57
|
if (options["parseAgenda"]) {
|
|
59
58
|
fs.ensureDirSync(transformedAgendaSessionDir);
|
|
60
|
-
|
|
61
|
-
fs.emptyDirSync(transformedAgendaSessionDir);
|
|
59
|
+
fs.emptyDirSync(transformedAgendaSessionDir);
|
|
62
60
|
}
|
|
63
61
|
const fifteenDaysFromNow = new Date();
|
|
64
62
|
// Don't download agendas more than 15 days in the future.
|
package/lib/src/server/sens.js
CHANGED
|
@@ -230,7 +230,7 @@ export async function* findAll() {
|
|
|
230
230
|
.orderBy("fonmemgrpsen.fonmemgrpsendatdeb", (ob) => ob.desc().nullsLast())).as("fonctions"),
|
|
231
231
|
])
|
|
232
232
|
.whereRef("memgrpsen.senmat", "=", "sen.senmat")
|
|
233
|
-
.orderBy("memgrpsen.memgrpsendatent", (ob) => ob.desc().nullsLast())).as("
|
|
233
|
+
.orderBy("memgrpsen.memgrpsendatent", (ob) => ob.desc().nullsLast())).as("groupes_senatoriaux"),
|
|
234
234
|
// Fonctions au bureau du Sénat
|
|
235
235
|
jsonArrayFrom(eb
|
|
236
236
|
.withSchema("senat")
|
|
@@ -294,7 +294,7 @@ export async function* findAll() {
|
|
|
294
294
|
delegations: row.delegations ?? [],
|
|
295
295
|
fonctions_bureau: row.fonctions_bureau ?? [],
|
|
296
296
|
groupes: row.groupes ?? [],
|
|
297
|
-
|
|
297
|
+
groupes_senatoriaux: row.groupes_senatoriaux ?? [],
|
|
298
298
|
mandats_senateur: row.mandats_senateur ?? [],
|
|
299
299
|
organismes: row.organismes ?? [],
|
|
300
300
|
points_contact: row.points_contact ?? [],
|