You've already forked wakapi-readme-stats
Merge branch 'Alpha' into master
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|
||||||
|
.vscode
|
||||||
|
|||||||
2
main.py
2
main.py
@@ -329,6 +329,8 @@ def get_waka_time_stats():
|
|||||||
if len(data['data']['projects']) == 0:
|
if len(data['data']['projects']) == 0:
|
||||||
project_list = no_activity
|
project_list = no_activity
|
||||||
else:
|
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'])
|
project_list = make_list(data['data']['projects'])
|
||||||
stats = stats + '🐱💻 ' + translate['Projects'] + ': \n' + project_list + '\n\n'
|
stats = stats + '🐱💻 ' + translate['Projects'] + ': \n' + project_list + '\n\n'
|
||||||
|
|
||||||
|
|||||||
@@ -109,5 +109,42 @@
|
|||||||
"private repositories": "Repositories private",
|
"private repositories": "Repositories private",
|
||||||
"I am an Early": "Sono un mattiniero 🐤",
|
"I am an Early": "Sono un mattiniero 🐤",
|
||||||
"I am a Night": "Sono un notturno 🦉"
|
"I am a Night": "Sono un notturno 🦉"
|
||||||
|
},
|
||||||
|
"zh": {
|
||||||
|
"Monday": "星期一",
|
||||||
|
"Tuesday": "星期二",
|
||||||
|
"Wednesday": "星期三",
|
||||||
|
"Thursday": "星期四",
|
||||||
|
"Friday": "星期五",
|
||||||
|
"Saturday": "星期六",
|
||||||
|
"Sunday": "星期天",
|
||||||
|
"Morning": "早晨",
|
||||||
|
"Daytime": "白天",
|
||||||
|
"Evening": "傍晚",
|
||||||
|
"Night": "晚上",
|
||||||
|
"Languages": "编程语言",
|
||||||
|
"Editors": "编辑器",
|
||||||
|
"operating system": "操作系统",
|
||||||
|
"Projects": "项目",
|
||||||
|
"Timezone": "时区",
|
||||||
|
"Contributions in the year": "今年的贡献",
|
||||||
|
"Used in GitHub's Storage": "占用了 GitHub 内存",
|
||||||
|
"Opted to Hire": "选择雇用",
|
||||||
|
"Not Opted to Hire": "不选择雇用",
|
||||||
|
"Profile Views": "个人封面观看次数",
|
||||||
|
"From Hello World I have written": "从你好世界我已经写了",
|
||||||
|
"I am Most Productive on": "我最有效率是",
|
||||||
|
"This Week I Spend My Time On": "这周我花我的时间在",
|
||||||
|
"I Mostly Code in": "我主要编程在于",
|
||||||
|
"Timeline": "时间线",
|
||||||
|
"No Activity Tracked This Week": "本周没有记录任何活动",
|
||||||
|
"My GitHub Data": "我的 GitHub 数据",
|
||||||
|
"Lines of code": "行代码",
|
||||||
|
"public repository": "公共仓库",
|
||||||
|
"public repositories": "公共仓库",
|
||||||
|
"private repository": "私人仓库",
|
||||||
|
"private repositories": "私人仓库",
|
||||||
|
"I am an Early": "我是早起的 🐤",
|
||||||
|
"I am a Night": "我是晚起的 🦉"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user