def encode_json(): data = request.form.get('data') if data: encoded = to_urltoken(from_json(data)) return encoded else: return 'No data'
def encode_json(): data = request.form.get("data") if data: encoded = to_urltoken(from_json(data)) return encoded else: return "No data"
def update(): data = request.form.get('data') if data: return redirect(url_for('summary', data=to_urltoken(from_json(data)))) else: return 'No data'
def update(): data = request.form.get("data") if data: return redirect(url_for("summary", data=to_urltoken(from_json(data)))) else: return "No data"