Skip to content

Commit

Permalink
Counter.
Browse files Browse the repository at this point in the history
No-Issue

Signed-off-by: James Tanner <[email protected]>
  • Loading branch information
jctanner committed Oct 3, 2023
1 parent f53bd07 commit 965a00b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dev/community_scripts/cleanup_namespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,16 @@ def do_cleanup():

# check each ns for content ...
ns_keys = sorted(list(ns_map.keys()))
counter = 0
for ns_key in ns_keys:

if len(ns_map[ns_key]) <= 1:
continue

counter += 1

print('-' * 100)
print(ns_key)
print(f'{counter}. {ns_key}')
# is there a user for this namespace ...?
found_user = User.objects.filter(username=ns_key).first()

Expand Down

0 comments on commit 965a00b

Please sign in to comment.