From b517139b00b461e4bcc39251593730d8dae0bbf4 Mon Sep 17 00:00:00 2001 From: Kumi Date: Thu, 28 Mar 2024 16:25:33 +0100 Subject: [PATCH] feat(main): track total project count in project listing Introduce a new variable to hold the total number of projects when accessing the projects listing route. This addition enables improved tracking and potential features that require knowing the total number of projects upfront, such as pagination controls or statistics display. This change only affects the `project_list` function when the path matches the projects endpoint. By having the total number of projects readily available, future enhancements or adjustments to the UI/UX involving the display of project quantities can be more easily implemented, offering a better user experience. --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 9115f03..e98e1b8 100644 --- a/main.py +++ b/main.py @@ -448,6 +448,7 @@ def project_list(head, sort="", per_page=20): if path in ("/projects/", "/projects"): ibles = global_ibles["/projects"] + total = len(ibles) else: if "projects" in path.split("/"): ibles = []