MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / load_notes

Function load_notes

Scripts/Developer Base/Smart Notes.py:84–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82
83
84def load_notes():
85 raw = _safe_read_json(NOTES_FILE)
86 if not isinstance(raw, dict):
87 raw = {}
88 norm = {}
89 for k, v in raw.items():
90 if k == '_reminders':
91 norm[k] = v if isinstance(v, list) else []
92 continue
93 if isinstance(v, str):
94 norm[k] = v
95 else:
96 try:
97 norm[k] = json.dumps(v, indent=2, ensure_ascii=False)
98 except Exception:
99 norm[k] = str(v)
100 return norm
101
102
103def save_notes(notes):

Callers 5

add_note_cursesFunction · 0.70
curses_reminders_menuFunction · 0.70
run_pending_remindersFunction · 0.70
main_menuFunction · 0.70
add_note_interactiveFunction · 0.70

Calls 1

_safe_read_jsonFunction · 0.70

Tested by

no test coverage detected