Skip to content

Commit

Permalink
Fix GitHub fetching after github.com UI change
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlgo11 committed Jul 30, 2023
1 parent f4726db commit 6afa4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def fetch_var(name)
def fetch_github_activity(length)
html = Oga.parse_html(URI.open("https://github.com/#{fetch_var('GITHUB_USER')}"))
days = []
boxes = html.css('rect.ContributionCalendar-day')
boxes = html.css('td.ContributionCalendar-day')
boxes.each do |item|
days << Integer(item['data-level']) unless item['data-date'].nil? || Date.parse(item['data-date']) > Date.today
end
Expand Down

0 comments on commit 6afa4c1

Please sign in to comment.