Good afternoon friends of stackoverflow I have a question.
My doubt is that I want to enter a value to a field already registered in a database by means of sqlalchemy python using flask as a microframework here is my code example.
@app.route("/activate_email/<string:email>/<string:username>/<string:hashed_password>")
def activate_email(email, username, hashed_password):
token = User(token=1)
db.session.add
db.session.commit()
return render_template("activate_email.html", name = username, email=email)
I would like to enter a value of 1 to the token where the email or registered user is. I hope it was very clear otherwise do not hesitate to ask me.