You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2025/06/24 16:29:56 UTC

(tooling-trusted-release) branch main updated: Sort user projects in case insensitive order

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 <se...@miscoranda.com>
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: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org