def show_change_setting(album, setting, value): show = Show(album, current_app.config, session) try: show.change_setting(setting, value).save() except: return jsonify(result="Failed") return jsonify(result="OK")
def show_change_setting(album, setting, value): show = Show(album, current_app.config, session) try: show.change_setting(setting, value).save() except: return jsonify(result='Failed') return jsonify(result='OK')
def show_change_setting(album, setting, value): show = Show(album) if (show.change_setting(setting, value) and show.save()): return jsonify(result='OK') else: return jsonify(result='Failed')