From 940238ce598bab4b6d48d6ad5e747bacc98a49c0 Mon Sep 17 00:00:00 2001 From: Dick Wolff Date: Fri, 17 Jan 2025 13:58:30 +0100 Subject: [PATCH] Cleanup some debug stuff --- src/converter.test.ts | 2 +- src/converter.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/converter.test.ts b/src/converter.test.ts index cbeeb6a..d22a9e5 100644 --- a/src/converter.test.ts +++ b/src/converter.test.ts @@ -16,7 +16,7 @@ for (let idx = 0; idx < 43; idx++) { } } -describe("222converter", () => { +describe("converter", () => { beforeAll(() => { jest.spyOn(console, "log").mockImplementation(jest.fn()); diff --git a/src/converter.ts b/src/converter.ts index 7628a56..0631f6a 100644 --- a/src/converter.ts +++ b/src/converter.ts @@ -50,6 +50,7 @@ async function createAndRunConverter(converterType: string, inputFilePath: strin // Set cash balance update setting according to settings. result.updateCashBalance = `${process.env.GHOSTFOLIO_UPDATE_CASH}`.toLocaleLowerCase() === "true" + // Check if the output needs to be split into chunks. If so, calculate how many files need to be produced. const splitOutput = `${process.env.GHOSTFOLIO_SPLIT_OUTPUT}`.toLocaleLowerCase() === "true"; const filesToProduce = !splitOutput ? 1 : Math.round(result.activities.length / 25);