MCPcopy
hub / github.com/callumalpass/tasknotes / getTasksForDate

Method getTasksForDate

src/utils/TaskManager.ts:716–725  ·  view source on GitHub ↗

* Get tasks for a specific date from due and scheduled indexes.

(date: string)

Source from the content-addressed store, hash-verified

714 * Get tasks for a specific date from due and scheduled indexes.
715 */
716 getTasksForDate(date: string): string[] {
717 const targetDate = getDatePart(date);
718 this.ensureFilterIndexes();
719 return Array.from(
720 new Set([
721 ...(this.scheduledDateIndex.get(targetDate) ?? []),
722 ...(this.dueDateIndex.get(targetDate) ?? []),
723 ])
724 );
725 }
726
727 getTaskPathsForDateRange(
728 property: DateIndexProperty,

Calls 3

ensureFilterIndexesMethod · 0.95
getDatePartFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected