MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / _load_preferences

Method _load_preferences

core/preferences.py:286–296  ·  view source on GitHub ↗

Load preferences from database.

(self)

Source from the content-addressed store, hash-verified

284 self._load_preferences()
285
286 def _load_preferences(self):
287 """Load preferences from database."""
288 try:
289 prefs = self.state.get("user_preferences")
290 if prefs:
291 self._cache = json.loads(prefs)
292 else:
293 self._cache = {}
294 except Exception as e:
295 warning(f"Failed to load preferences: {e}")
296 self._cache = {}
297
298 def _save_preferences(self):
299 """Save preferences to database."""

Callers 1

__init__Method · 0.95

Calls 2

warningFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected