old_contents: import flask
  from app import app, db
  from app.views.handlers.profile_handler import get_profile_data
  
  
  @app.route('/profile/<int:user_id>')
  def get_profile(user_id):
  
      session = db.session
  
      user, results = get_profile_data(session, user_id)
  
      return flask.render_template('user.html',
                                   title=user.name,
                                   user=user,
                                   results=results)
  
new_contents: import flask
  from app import app, db
  from app.models import User
  from app.views.handlers.profile_handler import get_profile_data
  
  
  @app.route('/profile/<int:user_id>')
  def get_profile(user_id):
  
      session = db.session
  
      user, results = get_profile_data(session, user_id)
  
      active_users = session.query(User).all()
  
      return flask.render_template('user.html',
                                   title=user.name,
                                   user=user,
                                   active_users=active_users,
                                   results=results)
  
subject: load Users on profile page