diff --git a/main.py b/main.py index a9f7c60..1e6b9ae 100644 --- a/main.py +++ b/main.py @@ -454,7 +454,8 @@ def get_stats(github): yearly_data = loc.calculateLoc() loc.plotLoc(yearly_data) stats += '**' + translate['Timeline'] + '**\n\n' - stats = stats + '![Chart not found](https://raw.githubusercontent.com/' + username + '/' + username + '/master/charts/bar_graph.png) \n\n' + branch_name = github.get_repo(f'{username}/{username}').default_branch + stats = stats + '![Chart not found](https://raw.githubusercontent.com/' + username + '/' + username + '/' + branch_name + '/charts/bar_graph.png) \n\n' return stats