Skip to content

Commit

Permalink
fix: somehow google changed the classname wtf
Browse files Browse the repository at this point in the history
  • Loading branch information
EvolutionX-10 committed Oct 31, 2023
1 parent c1bc799 commit 5fd7f26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/leaderboard-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Update Leaderboard

on:
schedule:
- cron: '*/60 * * * *'
- cron: '0 */2 * * *'
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion scripts/getParticipants.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const init = async () => {
for (let i = 0; i < profile.length; i++) {
await wait(500);
if (!profile[i]['isEnrollStatusGood']) continue;
console.log(`Fetching Person ${i + 1}`);
console.log(`Fetching Person ${i + 1} (${profile[i]['name']})`);
profile[i]['badges'] = await getBadges(profile[i]['profileLink'], profile[i]['enrollDate']);
}
// count skills and quests
Expand Down
2 changes: 1 addition & 1 deletion scripts/scrape.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getBadges = async (url, enrollDate) => {
badgeName = badgeName.map((elem) => elem.innerText.split("\n").join(""));
}

let badgeDate = badgeClass.map((elem) => elem.querySelector("span.ql-body-2"));
let badgeDate = badgeClass.map((elem) => elem.querySelector("span.ql-body-medium"));
if (!badgeDate) {
console.log("No links found");
return [];
Expand Down

0 comments on commit 5fd7f26

Please sign in to comment.