mirror of
https://github.com/Xevion/runnerspace.git
synced 2026-01-31 10:25:59 -06:00
Add new users list to index
This commit is contained in:
@@ -8,7 +8,8 @@ blueprint = Blueprint('main', __name__)
|
||||
|
||||
@blueprint.route('/')
|
||||
def index(): # put application's code here
|
||||
return render_template('layouts/index.html')
|
||||
users = User.query.order_by(User.time_registered).limit(10).all()
|
||||
return render_template('layouts/index.html', new_users=users)
|
||||
|
||||
|
||||
@blueprint.route('/about')
|
||||
|
||||
Reference in New Issue
Block a user