Skip to content

Commit

Permalink
Obtener las bitacoras de manera decreciente por ID
Browse files Browse the repository at this point in the history
  • Loading branch information
logos914 committed Nov 20, 2024
1 parent bc31255 commit 753c856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/bitacora_asignaciones.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def agregar(bitacora):

@staticmethod
def listar():
return BitacoraAsignaciones.query.all()
return BitacoraAsignaciones.query.order_by(BitacoraAsignaciones.id.desc()).all()

@staticmethod
def listar_json():
Expand Down

0 comments on commit 753c856

Please sign in to comment.