mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-06 09:16:19 -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('/')
|
||||
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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user