Commit 4113c4f3ecdfdb817e45cb57087a1cf2b7e5c9a6

Authored by hitier
1 parent 04f2b6e8

Fix user_show_all

Showing 1 changed file with 3 additions and 4 deletions   Show diff stats
app/commands/commands.py
... ... @@ -348,14 +348,13 @@ def show_roles():
348 348 @bp.cli.command('user_show_all')
349 349 def user_show_all():
350 350 """ Show all users in db."""
351   - print("{:<5} {:<15} {:<15} {:<15} {:<15}".format('id', 'name', 'login', 'passwd', 'email'))
352   - print("{:<5} {:<15} {:<15} {:<15} {:<15}".format('-' * 5, '-' * 15, '-' * 15, '-' * 15, '-' * 15))
  351 + print("{:<5} {:<15} {:<15} {:<15}".format('id', 'name', 'login', 'email'))
  352 + print("{:<5} {:<15} {:<15} {:<15}".format('-' * 5, '-' * 15, '-' * 15, '-' * 15))
353 353 for user in User.query.all():
354 354 print(user.login)
355   - print("{:<5} {:<15} {:<15} {:<15} {:<15}".format(
  355 + print("{:<5} {:<15} {:<15} {:<15}".format(
356 356 user.id,
357 357 user.name,
358 358 user.login,
359   - user.password,
360 359 user.email
361 360 ))
... ...