perf: Do not read worksheet twice
This commit is contained in:
+7
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user