def get_setting(name, default):
    """
    TODO encrypt using secret
    """
    try:
        setting = Setting.query.get(name)
        return setting.value_decrypted
    except __HOLE__:
        return default
dataset/ETHPy150Open nkuttler/flaskwallet/settingsapp/helpers.py/get_setting