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

Function modifier

scripts/kanban_update.py:149–155  ·  view source on GitHub ↗
(logs)

Source from the content-addressed store, hash-verified

147 }
148 try:
149 def modifier(logs):
150 if logs is None:
151 logs = []
152 logs.append(entry)
153 if len(logs) > MAX_AUDIT_LOG:
154 logs = logs[-MAX_AUDIT_LOG:]
155 return logs
156 atomic_json_update(AUDIT_FILE, modifier, [])
157 except Exception as e:
158 log.warning(f"审计日志写入失败: {e}")

Callers 1

atomic_json_updateFunction · 0.85

Calls 4

now_isoFunction · 0.90
find_taskFunction · 0.85
_todo_countsFunction · 0.85

Tested by

no test coverage detected