Assume table has three columns: username, password and no_of_logins.
username
password
no_of_logins
When user tries to login, it\'s checked for an entry with
With the help of user=User.query.filter_by(username=form.username.data).first() statement you will get the specified user in user variable.
user=User.query.filter_by(username=form.username.data).first()
user
Now you can change the value of the new object variable like user.no_of_logins += 1 and save the changes with the session's commit method.
user.no_of_logins += 1
session