Renamed function argument to reveal its meaning and to not override the built-in input
function.
This commit is contained in:
@ -205,11 +205,11 @@ def get_calendar(username, base_url='https://github.com/'):
|
|||||||
return page.readlines()
|
return page.readlines()
|
||||||
|
|
||||||
|
|
||||||
def max_commits(input):
|
def max_commits(calendar):
|
||||||
"""finds the highest number of commits in one day"""
|
"""finds the highest number of commits in one day"""
|
||||||
output = set()
|
output = set()
|
||||||
|
|
||||||
for line in input:
|
for line in calendar:
|
||||||
for day in line.split():
|
for day in line.split():
|
||||||
if 'data-count=' in day:
|
if 'data-count=' in day:
|
||||||
commit = day.split('=')[1]
|
commit = day.split('=')[1]
|
||||||
|
Reference in New Issue
Block a user