Fixed name and acronym case.

This commit is contained in:
Jochen Kupperschmidt
2016-06-05 22:52:06 +02:00
parent bb31c8eb46
commit 60c2aae15f

View File

@ -6,7 +6,7 @@
""" """
gitfiti gitfiti
noun : Carefully crafted graffiti in a github commit history calendar noun : Carefully crafted graffiti in a GitHub commit history calendar
""" """
from datetime import datetime, timedelta from datetime import datetime, timedelta
@ -191,7 +191,7 @@ def load_images(img_names):
def get_calendar(username, base_url='https://github.com/'): def get_calendar(username, base_url='https://github.com/'):
"""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
try: try:
@ -223,7 +223,7 @@ def max_commits(calendar):
def multiplier(max_commits): def multiplier(max_commits):
"""calculates a multiplier to scale github colors to commit history""" """calculates a multiplier to scale GitHub colors to commit history"""
m = max_commits / 4.0 m = max_commits / 4.0
if m == 0: if m == 0:
@ -310,10 +310,10 @@ def save(output, filename):
def main(): def main():
print(TITLE) print(TITLE)
print('Enter github url') print('Enter GitHub URL')
ghe = raw_input('Enter nothing for https://github.com/ to be used: ') ghe = raw_input('Enter nothing for https://github.com/ to be used: ')
print('Enter your github username:') print('Enter your GitHub username:')
username = raw_input('>') username = raw_input('>')
if not ghe: if not ghe:
@ -338,7 +338,7 @@ def main():
print(( print((
'By default gitfiti.py matches the darkest pixel to the highest\n' 'By default gitfiti.py matches the darkest pixel to the highest\n'
'number of commits found in your github commit/activity calendar,\n' 'number of commits found in your GitHub commit/activity calendar,\n'
'\n' '\n'
'Currently this is: {0} commits\n' 'Currently this is: {0} commits\n'
'\n' '\n'
@ -374,7 +374,7 @@ def main():
output = fake_it(image, get_start_date(), username, repo, output = fake_it(image, get_start_date(), username, repo,
offset, m * match) offset, m * match)
else: else:
git_url = raw_input('Enter git url like git@site.github.com: ') git_url = raw_input('Enter Git URL like git@site.github.com: ')
output = fake_it(image, get_start_date(), username, repo, output = fake_it(image, get_start_date(), username, repo,
offset, m * match, git_url=git_url) offset, m * match, git_url=git_url)