From 511b7bd87b9b913abce549e709ec5b96b5fe3b89 Mon Sep 17 00:00:00 2001 From: Mohanad Mallooki Date: Fri, 19 Jan 2024 10:54:47 -0800 Subject: [PATCH] Update gitfiti.py The old parase function did not able to catch and return the commit the new test it works --- gitfiti.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gitfiti.py b/gitfiti.py index b327a1df60..4a8e82ec04 100755 --- a/gitfiti.py +++ b/gitfiti.py @@ -297,7 +297,8 @@ def parse_contributions_calendar(contributions_calendar): for line in contributions_calendar.splitlines(): # a valid line looks like this: # 23 contributions on Sunday, February 26, 2023 - 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():