Parcourir la source

manage_participants: order list by ID

Baptiste Jonglez il y a 9 ans
Parent
commit
cb3b0ed13b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      manage_participants.py

+ 1 - 1
manage_participants.py

@@ -14,7 +14,7 @@ db = SQLAlchemy(app)
 
 
 def show_participants():
-    for p in Participant.query.all():
+    for p in Participant.query.order_by(Participant.id).all():
         print("[{}] {}, {} ({}) is {} "
               "and has UUID {} ({})".format(p.id,
                                             p.name,