Return whether sync summary notifications are enabled. Args: config: Configuration dictionary Returns: True if sync summary is enabled, False otherwise (default: False)
(config: dict)
| 944 | |
| 945 | |
| 946 | def 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 | |
| 963 | def get_sync_summary_on_success(config: dict) -> bool: |
nothing calls this directly
no test coverage detected