Added connected and unconnected account count in activity report script.
This commit is contained in:
parent
513e8085dc
commit
7aeee0a4ae
@ -98,6 +98,12 @@ generateSpecificReport()
|
||||
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"
|
||||
|
||||
local connectedAccountCount=$(curl -s "https://forge.chapril.org/api/v1/users/search?limit=100000&token=$GITEA_API_KEY" | jq '.data[].last_login' | grep -cv "1970")
|
||||
echo "Nombre de comptes connectés au moins une fois = $connectedAccountCount"
|
||||
|
||||
local unconnectedAccountCount=$(curl -s "https://forge.chapril.org/api/v1/users/search?limit=100000&token=$GITEA_API_KEY" | jq '.data[].last_login' | grep -c "1970")
|
||||
echo "Nombre de comptes jamais connectés = $unconnectedAccountCount"
|
||||
|
||||
#$(curl -s "https://forge.chapril.org/api/v1/admin/orgs?limit=100000&token=$GITEA_API_KEY" | jq '. | length' > t)
|
||||
local organizationCount=$(curl -s "https://forge.chapril.org/api/v1/admin/orgs?limit=100000&token=$GITEA_API_KEY" | jq '. | length')
|
||||
if [[ -z "$organizationCount" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user