Example #1
0
def encode_json():
    data = request.form.get('data')
    if data:
        encoded = to_urltoken(from_json(data))
        return encoded
    else:
        return 'No data'
Example #2
0
def encode_json():
    data = request.form.get("data")
    if data:
        encoded = to_urltoken(from_json(data))
        return encoded
    else:
        return "No data"
Example #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'
Example #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"