From f1d508b2fc31f633013d5043a110bc4aa70f0ae0 Mon Sep 17 00:00:00 2001 From: Willi Date: Fri, 29 Nov 2024 10:11:04 +0100 Subject: [PATCH] Print the total number of hits from all indices --- arlas/cli/index.py | 1 + 1 file changed, 1 insertion(+) diff --git a/arlas/cli/index.py b/arlas/cli/index.py index 31cc16d..1d77b0b 100644 --- a/arlas/cli/index.py +++ b/arlas/cli/index.py @@ -24,6 +24,7 @@ def list_indices(): tab = PrettyTable(indices[0], sortby="name", align="l") tab.add_rows(indices[1:]) print(tab) + print(f"Total count: {sum([int(index_info[2]) for index_info in indices[1:]])}") @indices.command(help="Describe an index")