def api_home(path): vs = Alert.select_vs(where='path=%s', params=[path]) sms_strings = [] if vs: sms_strings = vs[0].content.split(',,') return render_template('index.html', **locals())