Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gitfiti.py - parse_contributions_calendar function #111

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion gitfiti.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ def parse_contributions_calendar(contributions_calendar):
for line in contributions_calendar.splitlines():
# a valid line looks like this:
# <rect width="11" height="11" x="-31" y="0" class="ContributionCalendar-day" data-date="2023-02-26" data-level="3" rx="2" ry="2">23 contributions on Sunday, February 26, 2023</rect>
if 'data-date=' in line:
# I changed the part to look for from 'data-date=' to 'sr-only position-absolute'
if 'sr-only position-absolute' in line:
commit = line.split('>')[1].split()[0] # yuck

if commit.isnumeric():
Expand Down