MCPcopy
hub / github.com/mandarons/icloud-docker / get_sync_summary_enabled

Function get_sync_summary_enabled

src/config_parser.py:946–960  ·  view source on GitHub ↗

Return whether sync summary notifications are enabled. Args: config: Configuration dictionary Returns: True if sync summary is enabled, False otherwise (default: False)

(config: dict)

Source from the content-addressed store, hash-verified

944
945
946def get_sync_summary_enabled(config: dict) -> bool:
947 """Return whether sync summary notifications are enabled.
948
949 Args:
950 config: Configuration dictionary
951
952 Returns:
953 True if sync summary is enabled, False otherwise (default: False)
954 """
955 config_path = ["app", "notifications", "sync_summary", "enabled"]
956 if not traverse_config_path(config=config, config_path=config_path):
957 return False
958
959 value = get_config_value(config=config, config_path=config_path)
960 return bool(value) if value is not None else False
961
962
963def get_sync_summary_on_success(config: dict) -> bool:

Callers

nothing calls this directly

Calls 2

traverse_config_pathFunction · 0.90
get_config_valueFunction · 0.90

Tested by

no test coverage detected