79442561

Date: 2025-02-16 03:31:55
Score: 2
Natty:
Report link

Found out that order_by can take a string, although the documentation for that is in a weird place not right by the other docs for order_by. If you import asc and desc from sqlalchemy, you can call

order_by(desc("id")) and it will work

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: froopydoop