@tricoteuses/senat 2.4.1 → 2.4.2
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.
|
@@ -131,10 +131,11 @@ async function convertTexteUrls(dataDir, sessions) {
|
|
|
131
131
|
async function convertRapportUrls(dataDir, sessions) {
|
|
132
132
|
const rapportsDir = path.join(dataDir, RAPPORT_FOLDER);
|
|
133
133
|
fs.ensureDirSync(rapportsDir);
|
|
134
|
+
const originalTextesDir = path.join(rapportsDir, DATA_ORIGINAL_FOLDER);
|
|
134
135
|
for await (const rapport of findSenatRapportUrls(sessions)) {
|
|
135
136
|
const parsedRapportUrl = path.parse(rapport.url);
|
|
136
137
|
const rapportName = parsedRapportUrl.name;
|
|
137
|
-
const rapportDir = path.join(
|
|
138
|
+
const rapportDir = path.join(originalTextesDir, `${rapport.session ?? UNDEFINED_SESSION}`, rapportName);
|
|
138
139
|
fs.ensureDirSync(rapportDir);
|
|
139
140
|
const rapportHtmlUrlBase = `${rapportName}_mono.html`;
|
|
140
141
|
const rapportHtmlUrl = path.format({
|