1
0

perf: Do not read worksheet twice

This commit is contained in:
2026-03-25 10:41:24 +01:00
parent 86f71bf178
commit 448b565835
3 changed files with 11 additions and 12 deletions
+7 -2
View File
@@ -12,10 +12,15 @@
* GNU General Public License for more details.
*/
import ExcelJS from "exceljs"
import parseV1V2 from "./parse/v1_v2.js";
import parseV3 from "./parse/v3.js";
export default async function parseThisShit(downloadedFilePath: string) {
await parseV1V2(downloadedFilePath);
await parseV3(downloadedFilePath);
const workbook = new ExcelJS.Workbook();
await workbook.xlsx.readFile(downloadedFilePath);
await parseV1V2(workbook);
await parseV3(workbook, downloadedFilePath);
}