diff --git a/app/commands/commands.py b/app/commands/commands.py index 42efb0b..c185743 100644 --- a/app/commands/commands.py +++ b/app/commands/commands.py @@ -348,14 +348,13 @@ def show_roles(): @bp.cli.command('user_show_all') def user_show_all(): """ Show all users in db.""" - print("{:<5} {:<15} {:<15} {:<15} {:<15}".format('id', 'name', 'login', 'passwd', 'email')) - print("{:<5} {:<15} {:<15} {:<15} {:<15}".format('-' * 5, '-' * 15, '-' * 15, '-' * 15, '-' * 15)) + print("{:<5} {:<15} {:<15} {:<15}".format('id', 'name', 'login', 'email')) + print("{:<5} {:<15} {:<15} {:<15}".format('-' * 5, '-' * 15, '-' * 15, '-' * 15)) for user in User.query.all(): print(user.login) - print("{:<5} {:<15} {:<15} {:<15} {:<15}".format( + print("{:<5} {:<15} {:<15} {:<15}".format( user.id, user.name, user.login, - user.password, user.email )) -- libgit2 0.21.2