Skip to content

Commit

Permalink
Retrieve and return the contributions calender as a string; split int…
Browse files Browse the repository at this point in the history
…o lines later as part of the processing stage.
  • Loading branch information
homeworkprod committed Jun 9, 2016
1 parent 18b49c1 commit 4d4af43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitfiti.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,14 @@ def retrieve_contributions_calendar(username, base_url):
print(e)
raise SystemExit

return page.read().decode('utf-8').splitlines()
return page.read().decode('utf-8')


def find_max_daily_commits(contributions_calendar):
"""finds the highest number of commits in one day"""
output = set()

for line in contributions_calendar:
for line in contributions_calendar.splitlines():
for day in line.split():
if 'data-count=' in day:
commit = day.split('=')[1]
Expand Down

0 comments on commit 4d4af43

Please sign in to comment.