コード例 #1
0
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
コード例 #2
0
def get_setting(installationValue, setting_name):
    return Installations_dao.get_setting_by_name(installationValue, setting_name)