diff --git a/backend/src/cards/repo.js b/backend/src/cards/repo.js index 8b06cebf..c9f13999 100644 --- a/backend/src/cards/repo.js +++ b/backend/src/cards/repo.js @@ -113,7 +113,6 @@ const renderRepoCard = (repo, options = {}) => { value: totalPRsAuthored, id: "prs_authored", link: `https://github.com/search?q=${repoFilter}author%3A${username}&type=pullrequests`, - number_format: "short", }; } if (show.includes("prs_commented")) { @@ -123,7 +122,6 @@ const renderRepoCard = (repo, options = {}) => { value: totalPRsCommented, id: "prs_commented", link: `https://github.com/search?q=${repoFilter}commenter%3A${username}+-author%3A${username}&type=pullrequests`, - number_format: "short", }; } if (show.includes("prs_reviewed")) { @@ -133,7 +131,6 @@ const renderRepoCard = (repo, options = {}) => { value: totalPRsReviewed, id: "prs_reviewed", link: `https://github.com/search?q=${repoFilter}reviewed-by%3A${username}+-author%3A${username}&type=pullrequests`, - number_format: "short", }; } if (show.includes("issues_authored")) { @@ -143,7 +140,6 @@ const renderRepoCard = (repo, options = {}) => { value: totalIssuesAuthored, id: "issues_authored", link: `https://github.com/search?q=${repoFilter}author%3A${username}&type=issues`, - number_format: "short", }; } if (show.includes("issues_commented")) { @@ -153,7 +149,6 @@ const renderRepoCard = (repo, options = {}) => { value: totalIssuesCommented, id: "issues_commented", link: `https://github.com/search?q=${repoFilter}commenter%3A${username}+-author%3A${username}&type=issues`, - number_format: "short", }; } @@ -169,7 +164,7 @@ const renderRepoCard = (repo, options = {}) => { showIcons: show_icons, shiftValuePos: 14.01, bold: text_bold, - number_format, + numberFormat: number_format, link: STATS[key].link, labelXOffset: 23, }), diff --git a/backend/src/cards/stats.js b/backend/src/cards/stats.js index d5b6dc41..5a786fed 100644 --- a/backend/src/cards/stats.js +++ b/backend/src/cards/stats.js @@ -86,9 +86,6 @@ const createTextNode = ({ link, labelXOffset = 25, }) => { - console.log("label: " + label); - console.log("numberFormat" + numberFormat); - const precision = typeof numberPrecision === "number" && !isNaN(numberPrecision) ? clampValue(numberPrecision, 0, 2)