MCPcopy
hub / github.com/cft0808/edict / _modifier

Function _modifier

dashboard/server.py:187–194  ·  view source on GitHub ↗
(tasks)

Source from the content-addressed store, hash-verified

185 found = [False]
186
187 def _modifier(tasks):
188 task = next((t for t in tasks if t.get('id') == task_id), None)
189 if task is None:
190 return tasks
191 updater(task)
192 task['updatedAt'] = now_iso()
193 found[0] = True
194 return tasks
195
196 modify_tasks(_modifier)
197 return found[0]

Callers

nothing calls this directly

Calls 1

now_isoFunction · 0.90

Tested by

no test coverage detected