From f6727b25557be48eda76e08b08d5dd169cd3fa29 Mon Sep 17 00:00:00 2001 From: Jochen Kupperschmidt Date: Sun, 5 Jun 2016 23:41:47 +0200 Subject: [PATCH] Extracted function calls. --- gitfiti.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gitfiti.py b/gitfiti.py index 713695b6c..982b06447 100755 --- a/gitfiti.py +++ b/gitfiti.py @@ -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,12 +380,11 @@ 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) + + output = fake_it(image, start_date, username, repo, git_url, offset, + fake_it_multiplier) save(output, 'gitfiti.sh') print('gitfiti.sh saved.')