gelstudios / gitfiti

abusing github commit history for the lulz
MIT License
8.07k stars 1.12k forks source link

fix commit calendar svg parsing for getting the highest number of commits #112

Open eatPizza311 opened 2 months ago

eatPizza311 commented 2 months ago

The current script is unable to capture the highest number of commits. GitHub changed the contribution calendar SVG format again after pull request #106 Fortunately, the pattern $(NUMBER OF COMMIT) contributions on $(DATE) stays the same and seems unlikely to change further. So, this pull request uses regex to get the number of commits in the function parse_contributions_calendar. Now, it can get the highest number of commits instead of 0 and generate an excellent calendar visual. 圖片