Skip to content

Commit

Permalink
mathematical logic error fixed - follow back
Browse files Browse the repository at this point in the history
  • Loading branch information
darsan-in committed Aug 4, 2024
1 parent 4858c25 commit c92e8c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action/dist/fetch-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c92e8c2

Please sign in to comment.