You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by gc...@apache.org on 2022/09/19 20:01:45 UTC
[allura] branch gc/8464 updated: fixup! [#8464] add noindex, follow header for list tools
This is an automated email from the ASF dual-hosted git repository.
gcruz pushed a commit to branch gc/8464
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/gc/8464 by this push:
new 95ab4067a fixup! [#8464] add noindex, follow header for list tools
95ab4067a is described below
commit 95ab4067a95121a93e064225622f4883809f48e5
Author: Guillermo Cruz <gu...@slashdotmedia.com>
AuthorDate: Mon Sep 19 14:01:38 2022 -0600
fixup! [#8464] add noindex, follow header for list tools
---
Allura/allura/controllers/project.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Allura/allura/controllers/project.py b/Allura/allura/controllers/project.py
index d8606f6cf..e78d29e03 100644
--- a/Allura/allura/controllers/project.py
+++ b/Allura/allura/controllers/project.py
@@ -322,12 +322,14 @@ class ToolListController:
total_entries = len(entries)
limit, page = h.paging_sanitizer(limit, page, total_entries)
start = page * limit
+ tool_label = g.entry_points['tool'][tool_name].tool_label if entries else None
return dict(
page=page,
limit=limit,
total_entries=total_entries,
entries=entries[start:start + limit],
- type=g.entry_points['tool'][tool_name].tool_label if entries else None,
+ type=tool_label,
+ tool_name=tool_label,
)