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

Method getOverdueTaskPaths

src/utils/TaskManager.ts:793–811  ·  view source on GitHub ↗

* Get overdue task paths from the due-date index.

()

Source from the content-addressed store, hash-verified

791 * Get overdue task paths from the due-date index.
792 */
793 getOverdueTaskPaths(): Set<string> {
794 const overdue = new Set<string>();
795 const today = getTodayString();
796 this.ensureFilterIndexes();
797
798 for (const [dueDate, paths] of this.dueDateIndex) {
799 if (!isBeforeDateSafe(dueDate, today)) {
800 continue;
801 }
802 for (const path of paths) {
803 const entry = this.taskFilterEntries.get(path);
804 if (entry && !entry.isCompleted) {
805 overdue.add(path);
806 }
807 }
808 }
809
810 return overdue;
811 }
812
813 /**
814 * Get all unique statuses from the filter index.

Callers

nothing calls this directly

Calls 4

ensureFilterIndexesMethod · 0.95
getTodayStringFunction · 0.90
isBeforeDateSafeFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected