def _detect_incomplete_config(config: Config) -> bool: config_dict = config.as_dict() for sec_name in config_dict: for key in config_dict[sec_name]: if Seedsync.__CONFIG_DUMMY_VALUE == config_dict[sec_name][key]: return True return False
def config(config: Config) -> str: config_dict = config.as_dict() # Make the section names lower case keys = list(config_dict.keys()) config_dict_lowercase = collections.OrderedDict() for key in keys: config_dict_lowercase[key.lower()] = config_dict[key] return json.dumps(config_dict_lowercase)