This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git


The following commit(s) were added to refs/heads/main by this push:
     new abea16a  Sort user projects in case insensitive order
abea16a is described below

commit abea16a1ebcf0d1dbb0ce2ac6fceb7dd09d6796e
Author: Sean B. Palmer <[email protected]>
AuthorDate: Tue Jun 24 17:29:39 2025 +0100

    Sort user projects in case insensitive order
---
 atr/routes/root.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/atr/routes/root.py b/atr/routes/root.py
index 09cf6b4..e7af3db 100644
--- a/atr/routes/root.py
+++ b/atr/routes/root.py
@@ -48,7 +48,7 @@ async def index() -> response.Response | str:
 
         async with db.session() as data:
             user_projects = await user.projects(uid)
-            user_projects.sort(key=lambda p: p.display_name)
+            user_projects.sort(key=lambda p: p.display_name.lower())
 
             projects_with_releases = []
             projects_without_releases = []
@@ -89,7 +89,7 @@ async def index() -> response.Response | str:
             project = item["project"]
             if not isinstance(project, models.Project):
                 return ""
-            return project.display_name
+            return project.display_name.lower()
 
         all_projects.sort(key=sort_key)
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to