def update_setting(setting, installationValue, sync=True): print("update: ", setting) prev = Installations_dao.get_setting_by_name(installationValue, setting['setting_name']) updated = Installations_dao.update_setting(setting, installationValue) if updated and sync: sync = sync_queue_dao.insert_params(installationValue, 'settings', 'update', setting, prev) return updated
def get_setting(installationValue, setting_name): return Installations_dao.get_setting_by_name(installationValue, setting_name)