Skip to content

Commit

Permalink
Cleanup some debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dickwolff committed Jan 17, 2025
1 parent ac96d93 commit 940238c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/converter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ for (let idx = 0; idx < 43; idx++) {
}
}

describe("222converter", () => {
describe("converter", () => {

beforeAll(() => {
jest.spyOn(console, "log").mockImplementation(jest.fn());
Expand Down
1 change: 1 addition & 0 deletions src/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 940238c

Please sign in to comment.