MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / updateTodayStats

Method updateTodayStats

src/views/StatsView.ts:488–498  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

486 }
487
488 private async updateTodayStats() {
489 if (!this.todayStatsEl) return;
490
491 const todayLocal = getTodayLocal();
492 const stats = await this.calculateStatsForRange(
493 startOfDay(todayLocal),
494 endOfDay(todayLocal)
495 );
496
497 this.renderTimeRangeStats(this.todayStatsEl, stats);
498 }
499
500 private async updateWeekStats() {
501 if (!this.weekStatsEl) return;

Callers 1

refreshStatsMethod · 0.95

Calls 3

renderTimeRangeStatsMethod · 0.95
getTodayLocalFunction · 0.90

Tested by

no test coverage detected