From c92e8c24cecc7d746cf32c477598c3b8ad8fddd9 Mon Sep 17 00:00:00 2001 From: PRIYADARSAN S Date: Sun, 4 Aug 2024 11:38:11 +0530 Subject: [PATCH] mathematical logic error fixed - follow back --- action/dist/fetch-data.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/action/dist/fetch-data.js b/action/dist/fetch-data.js index 19aa628..7bd60ff 100644 --- a/action/dist/fetch-data.js +++ b/action/dist/fetch-data.js @@ -335,16 +335,16 @@ async function main() { const totalContributions = await getTotalContributions(); const localMeta = { projects: groupedMeta, - totalProjects: ungroupedMeta.length - ignore_json_1.dontCount.length, + totalProjects: ungroupedMeta.length - (ignore_json_1.dontCount.length - ignore_json_1.ignore.length), totalCommits: totalContributions, overallDownloadCounts: getOverallDownloadCounts(ungroupedMeta), }; (0, fs_1.writeFileSync)((0, path_1.join)(process.cwd(), "ghmeta.json"), JSON.stringify(localMeta)); /* summary */ - console.log("Overall available repos count: ", ungroupedMeta.length); - console.log("No card - Ignored repos count: ", ignore_json_1.ignore.length); + console.log("Repo cards count: ", ungroupedMeta.length); + console.log("Ignored repo cards count: ", ignore_json_1.ignore.length); console.log("DontCount size: ", ignore_json_1.dontCount.length); - console.log("Final repos count = (Overall - DontCount) : ", localMeta.totalProjects); + console.log("Final repos count = ( Repo cards count - (DontCount - ignored length) ) : ", localMeta.totalProjects); } main().catch((err) => { console.log(err);