24
1
Fork 0

Fixed accountCount json bug.

This commit is contained in:
Christian P. MOMON 2020-11-21 04:48:11 +01:00 committed by root
parent 9990833d88
commit 299550d9b3
1 changed files with 1 additions and 1 deletions

View File

@ -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)