Browse Source

When returning the commits flags in the API, returned them by update date

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Pierre-Yves Chibon 3 years ago
parent
commit
56c3184deb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pagure/lib/query.py

+ 1 - 1
pagure/lib/query.py

@@ -1619,7 +1619,7 @@ def get_commit_flag(session, project, commit_hash):
         session.query(model.CommitFlag)
         .filter(model.CommitFlag.project_id == project.id)
         .filter(model.CommitFlag.commit_hash == commit_hash)
-    )
+    ).order_by(model.CommitFlag.date_updated)
 
     return query.all()