MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / update

Method update

app/storage/json_store.py:37–42  ·  view source on GitHub ↗
(self, updater: Callable[[Any], Any])

Source from the content-addressed store, hash-verified

35 return payload
36
37 def update(self, updater: Callable[[Any], Any]) -> Any:
38 with self._lock:
39 current = self._read_unlocked()
40 updated = updater(current)
41 self._write_unlocked(updated)
42 return updated
43
44 def _read_unlocked(self) -> Any:
45 if not self.path.exists():

Callers 7

import_accountMethod · 0.45
update_accountMethod · 0.45
save_taskMethod · 0.45
delete_accountMethod · 0.45
_merge_cookiesMethod · 0.45

Calls 2

_read_unlockedMethod · 0.95
_write_unlockedMethod · 0.95

Tested by

no test coverage detected