MCPcopy Create free account
hub / github.com/OpenRaiser/NanoResearch / _load

Method _load

nanoresearch/feishu_bot.py:105–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

103 self._load()
104
105 def _load(self) -> None:
106 if self._path.exists():
107 try:
108 data = json.loads(self._path.read_text(encoding="utf-8"))
109 self._summary = data.get("summary", "")
110 self._messages = data.get("messages", [])
111 self._facts = data.get("facts", [])
112 except (json.JSONDecodeError, OSError):
113 pass
114
115 def save(self) -> None:
116 if self._invalidated:

Callers 1

__init__Method · 0.95

Calls 2

read_textMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected