diff --git a/.gitignore b/.gitignore index f64f22c..ea49e9c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules/ __pycache__/ +.vscode diff --git a/main.py b/main.py index d0d18a5..c3d488c 100644 --- a/main.py +++ b/main.py @@ -329,6 +329,8 @@ def get_waka_time_stats(): if len(data['data']['projects']) == 0: project_list = no_activity else: + # Re-order the project list by percentage + data['data']['projects'] = sorted(data['data']['projects'], key=lambda x: x["percent"], reverse=True) project_list = make_list(data['data']['projects']) stats = stats + '🐱‍💻 ' + translate['Projects'] + ': \n' + project_list + '\n\n'