示例#1
0
def encode_json():
    data = request.form.get('data')
    if data:
        encoded = to_urltoken(from_json(data))
        return encoded
    else:
        return 'No data'
示例#2
0
def encode_json():
    data = request.form.get("data")
    if data:
        encoded = to_urltoken(from_json(data))
        return encoded
    else:
        return "No data"
示例#3
0
def update():
    data = request.form.get('data')
    if data:
        return redirect(url_for('summary', data=to_urltoken(from_json(data))))
    else:
        return 'No data'
示例#4
0
def update():
    data = request.form.get("data")
    if data:
        return redirect(url_for("summary", data=to_urltoken(from_json(data))))
    else:
        return "No data"