Turn the optional base URL argument into a mandatory one.
This commit is contained in:
@ -193,7 +193,7 @@ def load_images(img_names):
|
|||||||
return loaded_imgs
|
return loaded_imgs
|
||||||
|
|
||||||
|
|
||||||
def get_calendar(username, base_url=GITHUB_BASE_URL):
|
def get_calendar(username, base_url):
|
||||||
"""retrieves the GitHub commit calendar data for a username"""
|
"""retrieves the GitHub commit calendar data for a username"""
|
||||||
base_url = base_url + 'users/' + username
|
base_url = base_url + 'users/' + username
|
||||||
|
|
||||||
@ -327,9 +327,9 @@ def main():
|
|||||||
|
|
||||||
if not ghe:
|
if not ghe:
|
||||||
git_base = GITHUB_BASE_URL
|
git_base = GITHUB_BASE_URL
|
||||||
cal = get_calendar(username)
|
cal = get_calendar(username, git_base)
|
||||||
else:
|
else:
|
||||||
cal = get_calendar(username, base_url=ghe)
|
cal = get_calendar(username, ghe)
|
||||||
git_base = ghe
|
git_base = ghe
|
||||||
|
|
||||||
m = calculate_multiplier(find_max_commits(cal))
|
m = calculate_multiplier(find_max_commits(cal))
|
||||||
|
Reference in New Issue
Block a user