Commit 58635be6 authored by Diego Molteni's avatar Diego Molteni
Browse files

fixed user list output

parent c0211ea9
Pipeline #44082 passed with stage
in 33 seconds
......@@ -132,10 +132,18 @@ class User(SDUtilCMD):
sys.stdout.flush()
print('')
ml = max([len(row[0]) for row in rx]) + 3
admins = []
for item in rx:
print('- ' + item[0], end='')
print(' ' * (ml - len(item[0])), end='')
print(item[1])
if item[1] == 'admin':
admins.append(item[0])
print('- ' + item[0], end='')
print(' ' * (ml - len(item[0])), end='')
print(item[1])
else:
if item[0] not in admins:
print('- ' + item[0], end='')
print(' ' * (ml - len(item[0])), end='')
print(item[1])
def remove(self, args):
if not args:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment