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

Method getTaskInfoForDate

src/utils/TaskManager.ts:1165–1178  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

1163 }
1164
1165 async getTaskInfoForDate(date: Date): Promise<TaskInfo[]> {
1166 const dateStr = formatDateForStorage(date);
1167 const taskPaths = this.getTasksForDate(dateStr);
1168 const tasks: TaskInfo[] = [];
1169
1170 for (const path of taskPaths) {
1171 const taskInfo = await this.getTaskInfo(path);
1172 if (taskInfo) {
1173 tasks.push(taskInfo);
1174 }
1175 }
1176
1177 return tasks;
1178 }
1179
1180 getTaskPathsByDate(dateStr: string): Set<string> {
1181 return new Set(this.getTasksForDate(dateStr));

Callers

nothing calls this directly

Calls 3

getTasksForDateMethod · 0.95
getTaskInfoMethod · 0.95
formatDateForStorageFunction · 0.90

Tested by

no test coverage detected