From 299550d9b3550701f3344f43d6fb544732309e5b Mon Sep 17 00:00:00 2001 From: Christian Pierre MOMON Date: Sat, 21 Nov 2020 04:48:11 +0100 Subject: [PATCH] Fixed accountCount json bug. --- rapport_activite/rapport_activite.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rapport_activite/rapport_activite.sh b/rapport_activite/rapport_activite.sh index e199058..705abf0 100755 --- a/rapport_activite/rapport_activite.sh +++ b/rapport_activite/rapport_activite.sh @@ -95,7 +95,7 @@ generateSpecificReport() # https://forge.chapril.org/api/swagger #$(curl -s --dump-header - "https://forge.chapril.org/api/v1/admin/orgs?limit=1&page1&token=$GITEA_API_KEY" > t) #$(curl -s "https://forge.chapril.org/api/v1/users/search?limit=1&token=$GITEA_API_KEY" | jq '. | length' > t) - local accountCount=$(curl -s "https://forge.chapril.org/api/v1/users/search?limit=100000&token=$GITEA_API_KEY" | jq '. | length') + local accountCount=$(curl -s "https://forge.chapril.org/api/v1/users/search?limit=100000&token=$GITEA_API_KEY" | jq '.data | length') echo "Nombre de comptes = $accountCount" #$(curl -s "https://forge.chapril.org/api/v1/admin/orgs?limit=100000&token=$GITEA_API_KEY" | jq '. | length' > t)