Skip to content

Commit

Permalink
Fix empty charts (sallar#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
arndom authored Jul 31, 2023
1 parent 4940c3a commit 3b11c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/api/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function fetchYears(username) {
async function fetchDataForYear(url, year, format) {
const data = await fetch(`https://github.com${url}`);
const $ = cheerio.load(await data.text());
const $days = $("svg.js-calendar-graph-svg rect.ContributionCalendar-day");
const $days = $('table.ContributionCalendar-grid td.ContributionCalendar-day');
const contribText = $(".js-yearly-contributions h2")
.text()
.trim()
Expand Down

0 comments on commit 3b11c76

Please sign in to comment.