@app.route('/update')
def update():
    users = User.query.all()
    for user in users:
        add_or_update_user(user.name)
    return render_template('base.html', title='Database has been updated!', users=User.query.all())
@app.route('/update')
def update():
    users = User.query.all()
    for user in users:
        add_or_update_user(user.name)
    return render_template('base.html', title='Database has been updated!', users=User.query.all())