chore: 添加保存调试日志、修复 time-tracking 类型、简化首页
This commit is contained in:
@@ -389,7 +389,7 @@ class TimeTrackerService {
|
||||
const yearData = await this.persistence.getYearData(targetYear)
|
||||
totalDuration = yearData.yearlyTotal
|
||||
activeDays = Object.values(yearData.months).reduce((sum, m) => {
|
||||
return sum + Object.entries(m).filter(([_, d]) => (d as { totalDuration: number }).totalDuration > 0).length
|
||||
return sum + Object.entries(m).filter(([_, d]) => (d as any).totalDuration > 0).length
|
||||
}, 0)
|
||||
|
||||
for (const [month, summary] of Object.entries(yearData.months)) {
|
||||
|
||||
Reference in New Issue
Block a user