fix(个人主页): 总共学习天数改为有提交的天数
Some checks failed
Deploy / deploy (push) Has been cancelled

原来是首末提交之间跨了多久,现在按东八区日期对提交去重计数,比赛提交也算。
首末提交时间仍只看比赛外的提交,口径不变。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-19 07:07:57 -06:00
parent 06ad6745b7
commit b4c0f89291
3 changed files with 18 additions and 12 deletions

View File

@@ -81,7 +81,7 @@ async function init() {
firstSubmissionAt.value = parseTime(metricsRes.first)
latestSubmissionAt.value = parseTime(metricsRes.latest)
toLatestAt.value = durationToDays(metricsRes.latest, metricsRes.now)
learnDuration.value = durationToDays(metricsRes.first, metricsRes.latest)
learnDuration.value = `${metricsRes.activeDays}`
}
} finally {
toggle(false)