def factory_reset_all(burner_sn): settings = settings_dao.get_settings(burner_sn, 'admin') for setting in settings: setting['value'] = setting['default_value'] update_setting(setting, burner_sn)
def get_settings(burner_sn, role): return settings_dao.get_settings(burner_sn, role)