Answer the question
In order to leave comments, you need to log in
How to get row number in Flask-sqlalchemy table?
Hello, I need help. I'm using the flask-sqlalchemy extension. Here's the link . I have a table of players in which everyone has a rating, the rating is just an integer. I found how to sort in descending order.
query = Player.query.order_by(Player.rating.desc()).all()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question