From 4113c4f3ecdfdb817e45cb57087a1cf2b7e5c9a6 Mon Sep 17 00:00:00 2001 From: Richard Hitier Date: Thu, 15 Apr 2021 18:50:56 +0200 Subject: [PATCH] Fix user_show_all --- app/commands/commands.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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