You've already forked wakapi-readme-stats
7
main.py
7
main.py
@@ -454,7 +454,12 @@ def get_stats(github):
|
|||||||
yearly_data = loc.calculateLoc()
|
yearly_data = loc.calculateLoc()
|
||||||
loc.plotLoc(yearly_data)
|
loc.plotLoc(yearly_data)
|
||||||
stats += '**' + translate['Timeline'] + '**\n\n'
|
stats += '**' + translate['Timeline'] + '**\n\n'
|
||||||
stats = stats + ' \n\n'
|
try:
|
||||||
|
github.get_repo(f'{username}/{username}').get_branch('main')
|
||||||
|
branch_name = 'main'
|
||||||
|
except GithubException:
|
||||||
|
branch_name = 'master'
|
||||||
|
stats = stats + ' \n\n'
|
||||||
|
|
||||||
return stats
|
return stats
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user