mirror of
https://github.com/simple-login/app.git
synced 2024-09-27 20:31:30 +02:00
order api key by created order
This commit is contained in:
parent
e1d8c55a66
commit
d453c83974
@ -15,7 +15,11 @@ class NewApiKeyForm(FlaskForm):
|
||||
@dashboard_bp.route("/api_key", methods=["GET", "POST"])
|
||||
@login_required
|
||||
def api_key():
|
||||
api_keys = ApiKey.query.filter(ApiKey.user_id == current_user.id).all()
|
||||
api_keys = (
|
||||
ApiKey.query.filter(ApiKey.user_id == current_user.id)
|
||||
.order_by(ApiKey.created_at.desc())
|
||||
.all()
|
||||
)
|
||||
|
||||
new_api_key_form = NewApiKeyForm()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user