Пример #1
0
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())
Пример #2
0
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())