Skip to content

Commit

Permalink
Merge pull request #804 from autonomys/revert-801-temp_build_december…
Browse files Browse the repository at this point in the history
…_2024_leaderboard

Revert "Temp build December 2024 leaderboard"
  • Loading branch information
EmilFattakhov authored Jan 10, 2025
2 parents 4fb6ec0 + 03b1a44 commit b92612c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/scripts/leaderboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,14 @@ function generateKey(name) {
return crypto.createHash('sha256').update(normalized).digest('hex');
}

// Change start and end dates
const startDate = "2024-12-01T00:00:00+00:00";
const endDate = "2024-12-31T23:59:59+00:00";
function formatDateToBeginningOfMonth(date) {
const year = date.getFullYear();
const month = date.getMonth() + 1; // getMonth() is zero-indexed

return `${year}-${month.toString().padStart(2, '0')}-01T00:00:00+00:00`;
}

const formattedDate = formatDateToBeginningOfMonth(date);

async function getProjectMembers() {
try {
Expand Down

0 comments on commit b92612c

Please sign in to comment.