Extracted function calls.

This commit is contained in:
Jochen Kupperschmidt
2016-06-05 23:41:47 +02:00
parent ca1dc8f00e
commit f6727b2555

View File

@ -326,11 +326,11 @@ def main():
if not ghe:
git_base = GITHUB_BASE_URL
cal = get_calendar(username, git_base)
else:
cal = get_calendar(username, ghe)
git_base = ghe
cal = get_calendar(username, git_base)
m = calculate_multiplier(find_max_commits(cal))
print('Enter name of the repo to be used by gitfiti:')
@ -380,10 +380,9 @@ def main():
if not ghe:
git_url = 'git@github.com'
output = fake_it(image, start_date, username, repo, git_url, offset,
fake_it_multiplier)
else:
git_url = request_user_input('Enter Git URL like git@site.github.com: ')
output = fake_it(image, start_date, username, repo, git_url, offset,
fake_it_multiplier)