Add new users list to index

This commit is contained in:
Xevion
2022-03-27 11:18:46 -05:00
parent b70e39acfa
commit 0ade256bc9
2 changed files with 10 additions and 2 deletions
+2 -1
View File
@@ -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')