Skip to content

Commit

Permalink
move a var to a more logical place
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneknapp committed Dec 13, 2023
1 parent 9f1be65 commit 4099396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/delete-unused-users.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ def delete_users_from_hub(hub_url, token, inactive_since, dry_run=False):
"Accept": "application/jupyterhub-pagination+json",
"Authorization": f"Bearer {token}",
}
count = 1

print(f"Scanning for users eligible for deletion on hub: {hub_url}")
users = list(retrieve_users(hub_url, headers, inactive_since))
print(f"Flagged {len(users)} users for deletion on hub: {hub_url}")

count = 1
for user in users:
if not dry_run:
delete_user(hub_url, headers, user['name'])
Expand Down

0 comments on commit 4099396

Please sign in to comment.