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