MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / update_settings

Method update_settings

apps/plugins/loader.py:528–532  ·  view source on GitHub ↗
(self, key: str, settings: Dict[str, Any])

Source from the content-addressed store, hash-verified

526 return self._registry.get(key)
527
528 def update_settings(self, key: str, settings: Dict[str, Any]) -> Dict[str, Any]:
529 cfg = PluginConfig.objects.get(key=key)
530 cfg.settings = settings or {}
531 cfg.save(update_fields=["settings", "updated_at"])
532 return cfg.settings
533
534 def run_action(self, key: str, action_id: str, params: Optional[Dict[str, Any]] = None) -> Dict[str, Any]:
535 try:

Callers 1

postMethod · 0.80

Calls 2

getMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected